Instructions
Run toward a wall, and then push the X or Y button to jump.
Push the A or B button, just as Mario makes contact with the wall. This causes him to jump off the wall, going even higher.
Continue hitting the A or B button every time he touches a surface to jump from. This can be another wall, a platform or a pipe. He'll hop back and forth between the surfaces, gradually making his way to the top.