Crédit Agricole interview question

Leetcode 344 Easy: Reverse String