Write a Boolean function IsAWord. The function takes a string as input and returns true / false. This is what the function does: If the string you give it has no spaces inside, the function returns true. If it has one or more spaces inside, the function return false. So for example, if you gave it “Barack” as input, it returns true, but if you give it “Barack Obama” as input, it returns false. Write the function body:
bool IsAWord(string S)