Pregunta de entrevista de Genpact

Data Structures related coding question in Python