Amazon interview question

Not allowed to say but leetcode medium-ish