1 class Solution { 2 bool hasStr(char* matrix, int row, int rows, int col, int cols, char* str, vector<bool> &all) 3 { 4 if(*str == '