Amazon interview question

2 medium questions at leetcode