Bloomberg interview question

4Sum problem.