Tekion interview question

2 sum problem in DSA.