Tower of Hanoi, Converting prefix to Postfix using recursion, Factorial