Function to find sum of ratio of count of special characters and length of substrings
double countRatio ( string & s , vector < char > & special ) { int n = s . length ( ) ; for ( int i = 0 ; i < n ; i ++ ) {