Given a string containing mostly spaces and one non-space character, return whether the character is positioned in the very centre of the string. This means that the number of spaces on both sides should be the same.
isCentered(" # ") ➞ true
isCentered(" 2 ") ➞ false
isCentered("@") ➞ trueOnly one character other than spaces will be given at a time.