Loading repovive.com/problems/classics/35
The Tower of Hanoi puzzle has three pegs A, B, C and disks of different sizes stacked on peg A (largest at bottom, smallest at top).
Move all disks from peg A to peg C using peg B as auxiliary, following these rules:
Print the sequence of moves. Each move is two characters: source peg followed by destination peg.