Function that checks if the string contain exactly K characters having ASCII value greater than p
bool isValidSubString ( string r , int K , int p ) { int c = 0 ; for ( int i = 0 ; i < r . length ( ) ; i ++ ) {