Pergunta de entrevista da empresa Pano Logic

How to write a program to solve Hanoi tower?