Pregunta de entrevista de Squarepoint Capital

Solve a Hakerank programming problem