It's the Tower of Hanoi! You can move discs from peg to peg, but you may not put a larger disc on a smaller disc. See if you can move all the discs from the first peg to the last peg!
The Tower of Hanoi was not my idea (obviously)