You are given an array A containing N integers. The following functions are defined for this array:
Write a program to find l and r such that is maximum. If there are several values of l and r for which is maximum, return the one having the largest length. If multiple values still exist, return the one with the smallest l.
Input format
Output format
For each test case, print three space-separated integers denoting l, r, and .
Constraints
In the Case 1 : since so we require a sub-array with a length of atleast 2. is giving a maximum possible value of .