Pregunta de entrevista de IBM

Simple python code were asked