Example 1

Example 2

Example 3

The number of nodes in the list is the range [0, 5000].-5000 <= Node.val <= 5000Example 1

Example 2

Example 3

The number of nodes in the list is the range [0, 5000].-5000 <= Node.val <= 5000