Help me in solving AO17 problem

My issue

My code

# Update the code below to solve this problem

t = int(input())
for i in range(t):
    N = int(input())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))

Learning course: Solve Programming problems using Python
Problem Link: CodeChef: Practical coding for everyone

t = int(input())
for i in range(t):
    sum1 = 0
    sum2 = 0
    N = int(input())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))
    A.remove(max(A))
    B.remove(max(B))
    if sum(A) > sum(B):
        print("Bob")
    elif sum(B) > sum(A):
        print("Alice")
    else:
        print("Draw")