Merge two sorted linked lists | Two Sigma Coding Question