Jane Street Interview Question

Snakes and ladders variant coding question