Error in the program
Mistakes
- print Yes or No (Y and N capital)
- to handle multiple testcases use this
int t;cin>>t;
while(t--){
// your code here
}
Modified Code
Mistakes
int t;cin>>t;
while(t--){
// your code here
}
Modified Code