UniCourt interview question

Coding question related to tetris game