Amazon Interview Question

Interview is heavy on data structures, algorithms and time complexity, you should review CS foundations before interviewing