Jane Street interview question

Code up Tetris, with specific requirements