The rules for the valid password are:
For example:
yana123 - NOT VALID (too short and no special char)
Ya12{} - not valid (too short)
M3_lo*#@ - VALID
yana123Kortsarts123(! - not valid (too long)
M3_lo*$& - not valid ($ is not permitted)
Write main to test your function. In my examples I indicated the reason for validity/not validity. That was done for explanation purposes only. Your program doesn't need to explain the reason for validity/not validity.
The function returns new string built using the following rules: all digits are replaced with '*', letter 'a' is replaced with '%' and the rest of the chars remains without change.
Write main to test your program
For example:
input: Yana123
output: Y%n%***