Is there any Algorithm knowledge needed to solve this problem? if needed, what is it?
You need to know Shunting-yard algo to solve this problem. Check this to know more.
Thank you very much diwas