Question

Write a function to reverse a string?

Login to Submit

Examples

Input: "cat"
Output: "tac"

Input: "book"
Output: "koob"

Input: "pen"
Output: "nep"