Amazon interview question

Study leetcode easy-medium difficulty questions