For this Question: Given an sorted array <b>Arr[]</b> of size <b>N</b>, containing both <b>negative</b> and <b>positive</b> integers, you need to print the squared sorted output.

<b>Note</b> Try using two pointer approachThe first line of input contains T, denoting the number of test cases. Each testcase contains 2 lines. The first line contains the N size of the array. The second line contains elements of an array separated by space.

Constraints:
1 &le; T &le; 100
1 &le; N &le; 10000
-10000 &le; A[i] &le; 10000

The Sum of N over all test cases does not exceed 10^6For each test case you need to print the sorted squared output in new lineInput:
1
5
-7 -2 3 4 6

Output:
4 9 16 36 49, I have written this Solution Code: t = int(input())
for i in range(t):
    n = int(input())
    for i in sorted(map(lambda j:int(j)**2,input().split())):
        print(i,end=' ')
    print(), In this Programming Language: Python, Now tell me if this Code is compilable or not?