Question d’entretien chez Pano Logic

How to write a program to solve Hanoi tower?