updated,programming soled,there is a bug , if the password has some repeated letter,then failed
practice two order function , one is amazon