EPAM Systems Interview Question

To reverse a string ,