Example 1

Example 2

Example 3

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

Example 2

Example 3

The number of nodes in the list is in the range [0, 104].1 <= Node.val <= 500 <= val <= 50