Can you guide me what is wrong with the code ?
Redundant Parentheses
guide me through this query ?
Hi, your code looks correct. the question is not very clear as I am not seeing any sample cases.
the problem could be: in your case, expression like (b) is redundant while they might be seeing it as non redundant. so if there is something between parenthesis(not only arithmetic operators), its non redundant. just try it out and let me know if problem exists.
Thanks