Program to solve Tower of Hanoi