Amazon Interview Question

algorithmic questions