Amazon interview question

Something about data structures to code