This is my code.
I am not able to figure out what should I do to maintain a backup of my input and then map it with the changed array to display the result correctly
There is probably a way to do it using the map container, but I am not familiar with it. I would just create a class or struct container two string and create a vector from that instead.