Two Pointer Approach-pair sum problem

what is the error in this code so that output is not shown.

Your while loop condition is wrong.
It should be i<j