Pregunta de entrevista de Turbolab Technologies

Given a problem statement to solve in Python