Amazon interview question

Write a function to merge two linked lists.