Matrix correction test cases went wrong

please find below my code: