Create a string from two given strings by concatenating common characters of the given strings.
Create a string from two given strings by concatenating common characters of the given strings.
Sample Input
harry, hermione
dean, tom
Sample Output
hrrhr
Nothing in common.
Again, you have lost your USIS password!! You went to the registrar office and requested for a new password. This time, you need to follow some rules to set your password. Otherwise, they won't change it. The rules are At least one lowercase letter
At least one uppercase letter
At least one digit (0-9)
At least one special character (_ , $ , #, @) Your task is to find whether a given password follows all those rules. If it breaks any rule, you have to print Lowercase Missing, Uppercase Missing, Digit Missing or Special Missing respective to the missing case. For more than one rule break, print all the rules that were broken (order doesn't matter). If the password is ok, print OK.
Sample Input
ohMyBR@CU
ohmybracu
OhMyBR@CU20
Sample Output
Digit missing
Uppercase character missing, Digit missing, Special character missing
OK

Step by step
Solved in 2 steps with 4 images









