Dayforce interview question

reverse a string in any language