Amazon interview question

Data Structures, Algorithms, Time Complexity