Question d’entretien chez Capital One

Find the first common intersection in two stacks