Maintain Difference Equal To
K = 0
arr[j] - arr[i] = K (where j > i)
P1 Value (i)
0
Difference
0
P2 Value (j)
0
You found the correct pair!