Uploading solution to reverse string.