Replace elelment with every greater element on RHS
Find pair in a array with given difference