Fedor Popov's submission of Replace for X | CodeChef