Pregunta de entrevista de Pano Logic

How to write a program to solve Hanoi tower?