Added the solution for the matrix multiplication problem