Jane Street interview question

creating tetris (basic oop essentially)