Coforge interview question

reverse of a string.