Find pairs with given difference K in the array
techiedelight.com