Domanda di colloquio di the LEGO Group

How I would solve 2 different tasks