Pregunta de entrevista de Amazon

Quite more about data structures