Bloomberg Interview Question

two sum