Return the smallest number of steps it takes to convert a string entirely into uppercase or entirely into lower case, whichever takes the fewest number of steps. A step consists of changing one character from lower to upper case, or vice versa.
stepsToConvert("abC") ➞ 1
// "abC" converted to "abc" in 1 step
stepsToConvert("abCBA") ➞ 2
// "abCBA" converted to "ABCBA" in 2 steps
stepsToConvert("aba") ➞ 0
stepsToConvert("abaCCC") ➞ 3
0 if empty string.0 if the string is already entirely in one case.