Problem - FMBT . Getting TLE in my solution

This is my solution below.
https://www.codechef.com/viewsolution/39840100

#include<bits/stdc++.h>
#include
#include

using namespace std;

#define FASTIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
//////////////////////////////////////////////////////////////////////////
void solve()
{
int n,ct1=0,ct2=0;
cin>>n;
string ans1,ans2;
for(int i=0;i<n;i++)
{
string s1;
cin>>s1;
if(i==0)
{
ans1=s1;
ct1++;
}
else
{
if(s1==ans1){
ct1++;
}
else{
ct2++;
ans2=s1;
}
}
}
if(ct1>ct2)
cout<<ans1<<"\n";
else if(ct1==ct2)
cout<<“Draw”<<"\n";
else
cout<<ans2<<"\n";

}
///////////////////////////////////////////////////////////////
int main()
{
FASTIO;

#ifndef ONLINE_JUDGE
freopen(“input.txt”, “r”, stdin);
freopen(“error.txt”, “w”, stderr);
freopen(“output.txt”, “w”, stdout);
#endif

int t;
cin>>t;
while(t–){
solve();
}

return 0;
}