Jane Street Interview Question

Implement some basic Tetris functions.