Amazon interview question

coding questions about data structures