Question d’entretien chez IMC Trading

Solve a problem on hackerrank