Amazon interview question

I cannot remember but it was LeetCode easy-medium