A word is considered valid if:
Its length is at least 3.
It contains only English letters (a-z, A-Z) or digits (0-9).
It has at least one vowel.
It has at least one consonant.
You are given a string word.
Return true if the word follows all rules, otherwise return false.
Vowels are: a, e, i, o, u (both lowercase and uppercase).
A consonant is any other English letter.
Input: word = "Hello3"
Output: true
Explanation:
Contains vowels (e,o), consonants (h,l,l), and has valid characters only.
Input: word = "AEI9"
Output: false
Explanation:
It has vowels but no consonant.
Input: word = "xyz"
Output: false
Explanation:
Contains consonants but missing a vowel.
Accepted:
Submission: