Write a function to reverse a string?
Login to Submit
Input: "cat" Output: "tac" Input: "book" Output: "koob" Input: "pen" Output: "nep"