Java Playground - Josephus problem: Online Interpreter, Compiler & Editor | Sololearn