Balanced paranthess in stack

https://ide.codingblocks.com/s/336609 balanced parenthesis is giving wrong output

hello @shrutikatyal
image

here it will be s1.top()!=’('