Yahoo interview question

Datastructure related questions