D. E. Shaw India Interview Question

Josephus problem