6. Implement Sparse Matrix Transpose function without nested for loop.(15%)