password_strength(string), which take a string
as input and returns the string "WEAK" if string is a WEAK
password, "MEDIUM" if string is a MEDIUM strength password, and
"STRONG" if string is a STRONG password.
| Examples | ||
|---|---|---|
| INPUT | OUPUT | REASON |
| flibdob | WEAK | too short |
| Unimaginatively | WEAK | an English word |
| 7Kings8all9Pies | STRONG | satisfies all conditions for STRONG |
| brandon123 | MEDIUM | is neither WEAK nor STRONG |