Intelligence Node interview question

2d array multiplication ,error solving snippit