Finoit interview question

code for string change using pointers