Amazon Interview Question

Not sure about this question