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

void fast_transpose(term a[ ], term b[ ])
{
int row_terms[20], starting_pos[20], i, j;
int num_cols = a[0].col, num_terms = a[0].value;
b[0].row = num_cols; b[0].col = a[0].row; b[0].value = num_terms; starting_pos[0]=1; bzero(row_terms);
// Set row_terms[] value
// Set starting_pos[] value
// Set b[] value
}