Getting wrong answer?

@siddharth9k9 set ans=0 inside testcase loop and small error in bracketing here have corrected your code https://ide.codingblocks.com/s/236115
i hope your doubt is resolved if yes dont forget to mark it as resolved

ohh… sorry i forgot and thanks for solving the bug

np @siddharth9k9 :smiley: