recursive solution for solving Tower of Hanoi puzzle