Move all discs to the last peg, one at a time. A bigger disc can never sit on a smaller one.
The games need JavaScript turned on.