Ayoconnect interview question

Reverse string and reverse array