Meta Interview Question

implement a sparse matrix class