Question d’entretien chez Wise

hackerrank type question involving data structures