the LEGO Group Interview Question

How I would solve 2 different tasks