Solve Merge Lists and Vertical Traversal | Meta Interview Question