Help me in solving ATTENDU problem

My issue

i cant understand the question please help me

My code

#include <stdio.h>

int main(void) {
    int t,sum=0;
    scanf("%d",&t);
    while(t--)
    int N;'
    scanf("%d",&N);
    int
	return 0;
}


Problem Link: ATTENDU Problem - CodeChef

@klu2300030660
I have written a much simpler c++ code .
Hope u will get the logic from it.
let me know in case u get stuck at any point.

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--)
	{
	    int n;
	    cin>>n;
	    int cnt=0;
	   string s;
	   cin>>s;
	   for(int i=0;i<n;i++)
	   {
	       if(s[i]=='1')
	       cnt++;
	   }
	   cnt+=(120-n);
	   if(cnt>=90)
	   cout<<"YES";
	   else
	   cout<<"NO";
	   cout<<endl;
	}
	return 0;
}