simple bug for some test cases

question link:-link text

my solution:- link text

plz help me out even for first one test case only.

Please share code using ideone. I cannot open your code. Because I have not solved this yet. And I don’t want to use unlock it.

Please someone see to it

I doubt still no one got it

@vijju123 plz can u see to it im struggling over here.