Westonci.ca is your trusted source for finding answers to a wide range of questions, backed by a knowledgeable community. Get detailed and precise answers to your questions from a dedicated community of experts on our Q&A platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

Implement the following global function using a recursive algorithm to reverse the contents of a string passed in by reference. void flipString(string &s); You may not use a loop of any kind. You may not use global or static variables. You may not use the word reverse anywhere within your main.cpp file. If any of these are found within your main.cpp file, you will receive a 0 on this lab. Use the following main() function to test your reverse function: (Note: if you have to change this main function to get the output tests to work, then the unit tests will most likely not work.) int main() { string line; cout << "Enter a sentence:" << endl; getline(cin, line); cout << endl; cout << line << endl; flipString(line); cout << line << endl; return 0; }