Created a solution that solves the string reversal problem.