CHEFGR wrong answer, please help me

I was trying to solve CHEFGR. My code is:
It passes samples and some test cases I tried. I am getting wrong answer. I am a beginner right now… Can someone please tell me the error and give a sample test case/s for which my code…

Your solution is correct. You jut need to output “Yes” instead of “YES” and “No” instead of “NO”.

1 Like

Ohh silly me :smiley:
Thanks a lot :slight_smile: