Problem: Please find the problem here. Solution: Because we need to output the whole matrix, we just simply have to compute it. Code: