MH Alshaya interview question

write a code to reverse the string