Function to return the minimum number of slips required such that the matrix contains at least a single submatrix of size 2 * 2 with all equal elements
int minFlips ( string mat [ ] , int r , int c ) {