Question d’entretien chez Bloomberg

I got a leetcode easy/medium type problem-solving.