Example 1

Example 2

Example 3

The number of nodes in the tree will be in the range [1, 2500].The number of nodes in the list will be in the range [1, 100].1 <= Node.val <= 100 for each node in the linked list and binary tree.Example 1

Example 2

Example 3

The number of nodes in the tree will be in the range [1, 2500].The number of nodes in the list will be in the range [1, 100].1 <= Node.val <= 100 for each node in the linked list and binary tree.