Pregunta de entrevista de Coach Academy

Solve Problem on Vjudge with python