You don't need the tower of Hanoi algorithm (but you get the solution) to see how you do in this ...
www.matrixlab-examples.com