A password is considered strong if the below conditions are all met:
6 characters and at most 20 characters."Baaabb0" is weak, but "Baaba0" is strong).Given a string password, return the minimum number of steps required to make password strong. if password is already strong, return 0.
In one step, you can:
password,password, orpassword with another character.
Example 1:
Input: password = "a" Output: 5
Example 2:
Input: password = "aA1" Output: 3
Example 3:
Input: password = "1337C0d3" Output: 0
Constraints:
1 <= password.length <= 50password consists of letters, digits, dot '.' or exclamation mark '!'.