Pregunta de entrevista de Jane Street

Code up Tetris, with specific requirements