Uploading solution to reverse string problem