the LEGO Group interview question

Walk through of the coding challenge