Bloomberg interview question

two sum