Reverse a string
Write a Python function to reverse a string.
Sample Code:
def reverseStr(str):
# Enter your logic here...
Examples:
Input: 'Codetisan'
Output: 'nasitedoC'
Explanation: The reverse of 'Codetisan' is 'nasitedoC'.
Input: 'apple'
Output: 'elppa'
Explanation: The reverse of 'apple' is 'elppa'.