Given a string s and two strings x and y, change all occurrences of x to y. If x is empty, return s;

Complete the following file:

prog.cpp

#include <iostream> #include <string> using namespace std; string replace(string s, string x, string y) {
}