Question d’entretien chez NVIDIA

How would you solve the Josephus problem.