Amazon interview question

Mostly leet code medium level questions, maybe hard