Sparse Matrix Compression: Row-Based Storage Transformation - Coding problem | OneNoughtOne