Question d’entretien chez Bloomberg

Asked to code for two sum problem (from leetcode)