Amazon Interview Question

The interview was totally based on data structures and algorithms