Citadel Securities interview question

The question was about lego blocks, should be on code force.