For this Question: Given an array A[ ] of size N containing positive integers, find maximum and minimum elements from the array.The first line of input contains an integer T, denoting the number of testcases. The description of T testcases follows. The first line of each testcase contains a single integer N denoting the size of array. The second line contains N space-separated integers denoting the elements of the array.

Constraints:
1 <= T <= 100
1 <= N <= 10^5
1 <= A[i] <= 10^7For each testcase you need to print the maximum and minimum element found separated by space.Sample Input:
2
5
7 3 4 5 6
4
1 2 3 4

Sample Output:
7 3
4 1
, I have written this Solution Code: def solve(a):
    maxi = 0
    mini = 1e7+1
    for i in a:
        if(i < mini):
            mini = i
        if(i > maxi):
            maxi = i
    return mini,maxi, In this Programming Language: Python, Now tell me if this Code is compilable or not?