Related approach 3 of 2d sum

sir why we dyanmic array here code implemention of sum of submatrices of 2d array ? cant we simole array here?