Moody's Interview Question

Solving tower of Hanoi problem using an algorithm