Domanda di colloquio di Capital One

Find the first common intersection in two stacks