Amazon interview question

Algorithmic questions like most other dev internship interviews