Acabes International interview question

2, Reverse a string : "array" Expected output: "Yarra"