Given a string word, return 'true' if the usage of capitals in it is correct, 'false' otherwise.
Correct usage means one of:
1. All letters are uppercase (e.g., 'USA').
2. All letters are lowercase (e.g., 'leetcode').
3. Only the first letter is uppercase (e.g., 'Google').
Input: A single string word (only English letters, no spaces).
Output: Return 'true' if capitalization is correct, otherwise 'false'.
Input: USA
Output: true
Explanation: All uppercase → valid.Input: FlaG
Output: false
Explanation: Mixed capitalization → invalid.Input: Google
Output: true
Explanation: First letter upper, rest lower → valid.1 <= word.length <= 100word consists of uppercase and lowercase English letters