Write a program to reverse a string.
Asked in the Technical stage.
Implement a function that takes a string s and returns the reversed string. If the input is empty, return an empty string.
Function signature: def reverse_string(s):
Input: a single string s
Output: the reversed string
def reverse_string(s):