Jane Street interview question

Snakes and ladders variant coding question