Amazon interview question

The interview was totally based on data structures and algorithms