Given a string, return the string with the first and last characters swapped. If there are fewer than 2 characters in the string, return the original string. Do not use a loop to solve this problem.

Complete the following file:

prog.cpp

#include <iostream> #include <string> using namespace std; string swapFirstAndLast(string s) {
}