Make a copy of the s slice, then assign x to the element at the i index, and return the copied slice from the solve function.
This problem uses the
reflect package to check the contents of the newSlice variable and the bufio package to read a space-separated string from the stdin. However, don't be scared! to solve this task, it is not necessary for you to know how the reflect or the bufio packages work.