Pregunta de entrevista de Amazon

Something about data structures to code