Newgen interview question

convert infix to postfix using stack.