Function to count number of 1 s present in a sub matrix from ( start_i , start_j ) to ( end_i , end_j )
static int count1s ( int start_i , int start_j , int end_i , int end_j , List < List < int > > mat ) {