the LEGO Group interview question

Walk us through your thinking behind your code