Amazon interview question

A coding challenge question on data structures.