For this Question: Given an array A of size N, find the maximum value of A<sub>i</sub> - A<sub>j</sub> over all i, j such that 1 <= i, j <= N.First line of the input contains a single integer N.
The second line of the input contains N space seperated integers.

Constraints:
1 <= N <= 10<sup>5</sup>
1 <= A<sub>i</sub> <= 10<sup>9</sup>Print the maximum value of A<sub>i</sub> - A<sub>j</sub> over all i, j such that 1 <= i, j <= N.Sample Input:
5
6 7 4 5 2

Sample Output:
5

Explaination:
We take i = 2, j = 5. A<sub>2</sub> - A<sub>5</sub> = 7 - 2 = 5., I have written this Solution Code: n = int(input())
arr = [int(x) for x in input().split()]
arr.sort()

print(arr[n-1] - arr[0]), In this Programming Language: Python, Now tell me if this Code is compilable or not?