A program to solve the tower of hanoi.