SNELECT - WA

Question link

My solution

unable to detect in what condition it will give WA

Hey @root00198

Your code fails for this test case. Try debugging it and you will get to know the mistake yourself

msmsmsmssss

Your output is a tie but it actually is the win of mongoose . It is because you are eliminating s by first removing the left ones and then the right ones but actually you should check for left of m and if no s is there , instantly check for right .