Redundant paranthesis problem - https://online.codingblocks.com/app/player/37688/content/70889/5292/code-challenge

sol- https://ide.codingblocks.com/s/203026 it’s give correct output test case fails.

@sudhanshu8917,
Updated Code: here