Flattening Of A Linked List Leetcode Question