Capital One Interview Question

Find the first common intersection in two stacks