Help me in solving DSSA26 problem

My issue

My code

t = int(input())
for _ in range(t):
    N = int(input())
    S = input()
    flag = 1
    
    i = 0
    while i < N:
        # Update the code below this line to solve the problem
        return
        
        
        
        
        
        


        if flag == 1:
            print("Yes")
        else:
            print("No")

Learning course: Kalasalingam Academy of Research and Education
Problem Link: CodeChef: Practical coding for everyone