Amazon interview question

complex data structure problem