What do you guys think about my solution to Challenge #1?
Only thing I'm worried about is a situation when a user enters less then 9 characters, but doesn't enter, ex., number. What if there is some garbage memory stored in password, where i>password length and that garbage memory turns out to be a number? I tried it few times, get the correct answer always, but still, could that happen?

Edit: Didn't check for a dollar sign, but that's just one more for loop.