Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Get quick and reliable solutions to your questions from knowledgeable professionals on our comprehensive Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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; }