C++ Solution to Coding Challenge 520. Detect Capital
An example of a string in C++
Problem statement
We define the usage of capitals in a word to be right when one of the following cases holds:
- All letters in this word are capitals, like
"USA"
. - All letters in this word are not capitals, like
"leetcode"
.