Bonito Designs interview question

How did you breakdown this problem?