Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our 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; }