Amazon Interview Question

Cannot say answer this question