Yandex Interview Question

reverse a string on c++