Help me in solving TTENIS problem

My issue

not accepting my answer, please provide reason why my code is wrong

My code

#include <iostream>
#include<string>
#include<algorithm>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--){
	    string s="";
	    cin>>s;
	    int sum=0;
	    sort(s.begin(),s.end(),std::greater<char>());
	    int i=0;
	    while(s[i]=='1'){
	        sum++;
	        i++;
	    }
	    if(sum>=11) cout<<"WIN"<<endl;
	    else cout<<"LOSE"<<endl;
	}
	return 0;
}

Problem Link: TTENIS Problem - CodeChef

@chinmay_bibhu
u have to take care of the case when both scores become 10 and 10 then the win will goes to that player who will win two consecutive points.