Macy's Interview Question

Figure out how to solve this puzzle together.