This week I will solve problem 344 on LeetCode called Reverse String. Below is my implementation of the problem.

The Description

Write a function that reverses a string. The input string is given as an array of characters char[].

Do not allocate extra space for another array, you must do this by…