Question d’entretien chez NextCapital Group

Please do this coding challenge