HERE Technologies interview question

Question was to like reverse a String