String passing as reference

how can we pass a string as reference is fucntion