Question d’entretien chez Fidessa

2 simple hackerrank question.. medium to easy difficulty