It is a ty to resolve the example shown by Matteo Vaccari at Codemotion.
You can check the talk here.
In order to be an acceptable password, a string must:
- Have a length grater than 7 characters.
- Contain at least one alphabetic characters.
- Contain at least one digit.