Finding the number of sub matrices having sum divisible by K


This is a companion discussion topic for the original entry at http://iq.opengenus.org/finding-number-of-sub-matrices-having-sum-divisible-by-k/