Possible solution to PasswordChecker exercise step by step