After entering the main menu, press left on the directional pad once and press the A button. In the password input screen, press up and down on the directional pad to scroll through the letters, A to confirm the letter of choice, and Start to confirm the inputted password.
Enter the following passwords to unlock the levels.