Bug in solution - Stack


#1

I’m getting correct answer when I run this program in my IDE but its not accepting here .

there’s a flaw in the solution. IMO if there’re multiple test cases then UI should be able to tell clearly where code is failing