Bloomberg Interview Question

4Sum problem.