Is there a way to print out the order of removal in the Josephus problem in O(n) ?
Example
With number of people is