user
Implement a function that takes in a string returns the reversed version.
Input: :
<noinput>
Output:
assistant
def reverse_string(string):
    reversed_str = ""
    for char in string:
        reversed_str = char + reversed_str 
    return reversed_str