Bloomberg Interview Question

Variation of Leetcode Two Sum