Comments

question could be framed in a better way...

Ooh the way the question is written is misleading then....

And why different solution for same test cases...

In problem A on
test case: (((),
this guy's solution gives YES, whereas this guy's solution gives NO. And interestingly, both are ACCEPTED ..... Something FISHY! Don't KNOW!