Sysdig interview question

Coding test: pair sum problem