Amazon interview question

I was asked leetcode easy/medium questions.