Microsoft Interview Question

Given 2 linked lists, write a function to check if they merges into one.