An array A consisting of N integers is given. A pair of integers (P, Q), such that 0