Help me in solving SRTLL problem

My issue

I tried so many times but it is not coming anyone help me to solve this

My code

T=int(input())
for i in range(T):
    N=int(input())
    A=list(map(int,input().split()))
    A.sort()
    print(*A)

Learning course: Placement preparation for Product companies
Problem Link: Another sorting problem Practice Problem in Placement preparation for Product companies - CodeChef