WNS-Vuram interview question

insert an element in string