Amazon Interview Question

what is the challenge, how to solve that?