Meta interview question

implement a sparse matrix class