Kulicke and Soffa interview question

3 sum problem from gfg