Solved string reverse in 3 ways