Pergunta de entrevista da empresa WorldQuant

Josephus Problem... You could find it on Wikipedia