Question 658675
Hint: This is a tower of hanoi problem, take a look here


<a href="http://en.wikipedia.org/wiki/Tower_of_Hanoi">http://en.wikipedia.org/wiki/Tower_of_Hanoi</a>