Given a string in which words are separated by spaces, return the first word that is repeated (i.e. immediately follows itself, like like this.) If no repeats are found, return an empty string.

Complete the following file:

prog.cpp

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