Question d’entretien chez Barclays

Coding problem statement to solve