why showing runtime error

T= int(input())
for i in range(T):
n= int(input())

s=input().split()
count = 0
what = 0
for i in s:
    if i == s[0] :
        count=count+1
    elif i == s[1]:
        what = what+1

if count==what :
    print('Draw')
elif count>what :
    print(s[0])
else :
    print(s[1])

also, adding links to the problems can help tremendously

that aside, why are you reading only one line from all the test cases ? and there is no guarantee that s[ 0 ] is different from s[ 1 ]