Objective
Write a program that prints the moves solving the Tower of Hanoi for the disk count given as its single argument, one move per line.
Steps
$ ./hanoi_moves 1 | cat -e
A C$
$ ./hanoi_moves 2 | cat -e
A B$ A C$ B C$
$ ./hanoi_moves 3 | cat -e
A C$ A B$ C B$ A C$ B A$ B C$ A C$
$ ./hanoi_moves 0 | cat -e
(no output)
$ ./hanoi_moves 3 2 | cat -e
wrong number of arguments$
Expected files
Allowed functions

Objective
Write a program that prints the moves solving the Tower of Hanoi for the disk count given as its single argument, one move per line.
Steps
$ ./hanoi_moves 1 | cat -e
A C$
$ ./hanoi_moves 2 | cat -e
A B$ A C$ B C$
$ ./hanoi_moves 3 | cat -e
A C$ A B$ C B$ A C$ B A$ B C$ A C$
$ ./hanoi_moves 0 | cat -e
(no output)
$ ./hanoi_moves 3 2 | cat -e
wrong number of arguments$
Expected files
Allowed functions

Tests
Run the tests to grade your code