

Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands. For example, "a b +" represents the addition of a and b.
Prefix notation is a method of writing mathematical expressions in which operators are placed before the operands. For example, "+ a b" represents the addition of a and b.
Expression contains lowercase English letters, ‘+’, ‘-’, ‘*’, and ‘/’.
Input: abc*+
Output: +a*bc
Explanation:
For the given postfix expression, infix expression is a+b*c. And it's corresponding prefix expression is +a*bc.
The first line of input contains a string ‘s' which denotes the Postfix expression.
Return a string which denotes the corresponding prefix expression.
You do not need to print anything, and it has already been taken care of. Just implement the given function.
Here, to convert from postfix to prefix, we can simply use stack data structure. We will be following two conditions as follow:
This process should repeat till the end of prefix expression.