input: 
  def reverse_double_linked_list(dll: DoubleLinkedList) -> None:
      """
      Reverse the given double linked list in place.
      
      >>> dll = DoubleLinkedList()
      >>> dll.append(1)
      >>> dll.append(2)
      >>> dll.append(3)
      >>> reverse_double_linked_list(dll)
      >>> node = dll.head
      >>> while node:
      ...     print(node.data, end=' ')
      ...     node = node.next
      3 2 1 
      """
      dll.reverse()
  
output:     
      current = dll.head
      dll.head = dll.tail
      dll.tail = current
      
      while current:
          temp = current.next
          current.next = current.prev
          current.prev = temp
          current = temp
  