Initialize three boolean variables to true, representing the three cases.
Iterate over each character in the word.
For case 1, check if all characters are uppercase. If a lowercase is found, set the corresponding boolean to false.
For case 2, check if all characters are lowercase. If an uppercase is found, set the corresponding boolean to false.
For case 3, check if only the first character is uppercase and the rest are lowercase. If this is not the case, set the corresponding boolean to false.
If any of the three booleans is true, return true. Otherwise, return false.