_:n92330dddc2bf40798a7baafdf0c6a800xb0
<http://schema.org/description>
"We define the usage of capitals in a word to be right when one of the following\ncases holds:\n\n * All letters in this word are capitals, like &quot;USA&quot;.\n * All letters in this word are not capitals, like &quot;leetcode&quot;.\n * Only the first letter in this word is capital, like &quot;Google&quot;.\n\nGiven a string word, return true if the usage of capitals in it is right.\n\nExample 1:\n\nInput: word &#x3D; &quot;USA&quot;\nOutput: true\n\nExample 2:\n\nInput: word &#x3D; &quot;FlaG&quot;\nOutput: false\n\nConstraints:\n\n * 1 &lt;&#x3D; word.length &lt;&#x3D; 100\n * word consi"
<https://www.thepoorcoder.com/leetcode-detect-capital-solution/>