Given an infix expression in the form of a string str. Conver this infix expression to postfix expression.
The first line of input contains an integer T denoting the number of test cases. The next T lines contains an infix expression.The expression contains all characters and ^,*,/,+,-.
For each testcase, in a new line, output the infix expression to postfix expression.
1 <= T <= 100
1 <= length of str <= 103
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.