Problem
You are given two linked lists:list1 and list2 of sizes n and m respectively.
Remove list1’s nodes from the a<sup>th</sup> node to the b<sup>th</sup> node, and put list2 in their place.
The blue edges and nodes in the following figure indicate the result:
Build the result list and return its head.
Examples
Constraints
3 <= list1.length <= 10^41 <= a <= b < list1.length - 11 <= list2.length <= 10^4