Pregunta de entrevista de Infosys

Python question; data structures and algorithms