Sysdig Interview Question

Coding test: pair sum problem