State Farm interview question

reverse a string in any language