Datamato interview question

write a code to reverse a string