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_2 , var_3 = None , var_0
      while var_3 :
          var_5 = var_3.next
          var_3.next = var_2
          var_2 = var_3
          var_3 = var_5
      return var_2
  