Amazon interview question

Datastructure, Reasoning and Coding