Capital One interview question

Find the first common intersection in two stacks