Convert Infix Expression to Postfix Expression

Implement the algorithm to convert an infix expression to postfix using a stack.

Input