test case for negative nos
nested brackets working if no operands after last bracket