Test case problem in arrays -target sum pair question

I could not understand the problem with my code and it is passing all 3 test case except the last test case.
link-https://ide.codingblocks.com/s/73152

@rishu7865 hey rishab first loop i=0 to n-1
second loop j=i+1 to n
update condition if(a[i]<a[j])