the LEGO Group Interview Question

How would you design a solution to this problem using AWS services?