Part 1:
In this case we have to check on a list of rules and passwords if there are valid or not and count how many valid passwords are in the list.
Rules
min = ?
max = ?
char = '?'
password
counter : 0
min <= 0 <= max
Total Solutions : 0
Part 2:
In this part the requirement is that the one of the positions should contain the key and the other not.