Leetcode daily challenge 725. Split Linked List in Parts in C++ in simpler way

Published --