Amazon interview question

Leetcode graphs, trees, arrays/strings medium questions