hanoi

Tower of Hanoi algorithm for finding the smallest number of steps to move the stack.