Example 1

Example 2

The number of nodes in the list is in the range [0, 500].-100 <= Node.val <= 1000 <= k <= 2 * 109Example 1

Example 2

The number of nodes in the list is in the range [0, 500].-100 <= Node.val <= 1000 <= k <= 2 * 109