Microsoft Interview Question

Area of consecutive sub matrix