Pregunta de entrevista de Western Digital

Data structures , Python and Puzzled