Pregunta de entrevista de Pocket FM

Shared codeshare link with python code and asked to refactor the code