Amazon interview question

classic leetcode medium questions and some data structure stuff