EFI interview question

reverse the string