Write a Python function for reversing a string and identify the time and space complexity.
Not applicable
def reverse_string(string):
 rev_string = ''
 for char in string:
  rev_string = char + rev_string

 return rev_string

 # Time Complexity: O(N)
 # Space Complexity: O(N)