The Josephus Problem is a mathematical problem in which a circle is made, its circumference formed of n people.
Starting from the person in the 0th position, each person eliminates the person to their left (the next person in the circle). The next living person then does the same, and the process is repeated until there is only one person left alive..
Find the position (index - starting from 0) of the last man standing for a circle of n people.
josephus(0) ➞ False
josephus(3) ➞ 2
josephus(6) ➞ 4
josephus(9) ➞ 2
False.