Domanda di colloquio di Noom

Given two vectors, design algorithm to find intersection