the LEGO Group interview question

Q: Solve this given problem