text: # Definition for singly-linked list.
  class ListNode:
      def __init__(self, val=0, next=None):
      self.val = val
      self.next = next
  class Solution:
      def reverseBetween(self, head: ListNode, m: int, n: int) -> ListNode:
          