Question d’entretien chez WorldQuant

Asked an easy HackerRank problem