Zillow interview question

How do you flatten a 2d linked list