comefrom: <garvit244>206_1.py
code: def reverseList( head):
      if not head:
          return None
      
      prev, curr = None, head
      while curr:
          temp = curr.next
          curr.next = prev
          prev = curr
          curr = temp
      return prev
masked: def sample_funcname ( var_0 ) :
      if not var_0 :
          return None
      var_1 , var_2 = None , var_0
      while var_2 :
          var_3 = var_2.next
          var_2.next = var_1
          var_1 = var_2
          var_2 = var_3
      return var_1
  