the LEGO Group interview question

What was your process when you were coming up with the solution code?