Amazon interview question

Data structures and algorithms. Leetcode kind of stuff.