Pregunta de entrevista de Mulberry Technology

a straightforward python coding question