In a given input array find integers a,b,c,d such that a + b = c + d