Solving the tower of hanoi problem from FlatIron