Bonito Designs Interview Question

How did you breakdown this problem?