the LEGO Group interview question

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