Amazon interview question

datastructures graphs trees dynamic programming