Amazon interview question

One question was based on Binary Search Trees and Other was on Dynamic Programming