Domanda di colloquio di Meta

For two sparse vectors, implement the dot product between these two vectors.