Solution of Towers of Hanoi using recursion