Question d’entretien chez Bloomberg

Two coding questions similar to the Leetcode question