For this Question: Given an array of N integers, your task is to find the maximum value of a given function F(i, j).

<b>F(i, j) = |Arr[i] - Arr[j]| + |i - j|</b>,The first line of input contains a single integer N, the next line of input contains N space- separated integers depicting the values of the array.

Constraints:-
1 <= N <= 100000
-100000 <= Arr[i] <= 100000Print a single integer containing the maximum value of the given function.Sample Input:-
3
1 3 -1

Sample Output:-
5

Explanation:-
f(1, 1) = f(2, 2) = f(3, 3) = 0
f(1, 2) = f(2, 1) = |1 - 3| + |1 - 2| = 3
f(1, 3) = f(3, 1) = |1 - (-1)| + |1 - 3| = 4
f(2, 3) = f(3, 2) = |3 - (-1)| + |2 - 3| = 5

Sample Input:-
4
1 2 3 4

Sample Output:-
6, I have written this Solution Code: n = int(input())
l = [int(x) for x in input().split()]

a1 = [x-i for i,x in enumerate(l)]
a2 = [x+i for i,x in enumerate(l)]

print(max((max(a2) - min(a2)), (max(a1) - min(a1)))), In this Programming Language: Python, Now tell me if this Code is compilable or not?