Question d’entretien chez Citi

given a case scenario and expected to code solution to it