Given two sparse vectors represented as arrays, compute their dot product efficiently.
A sparse vector has mostly zero elements. Store only non-zero elements for efficiency.
1,0,0,2,3 0,3,0,4,0
8