C# to achieve the problem of the Tower of Hanoi