How can I write a prog to implement the Tower of Hannoi