EPAM Systems interview question

To reverse a string ,