Write a function to implement the Josephus problem for n people and a step size k.
HardProblem Statement
Write a function to implement the Josephus problem for n people and a step size k.
Sample Input
n = 7 k = 3
Sample Output
Survivor: 4
Limits
Time: 2s · Memory: 256 MB