Jane Street interview question

Coding a simple retro game