Function to find sum of ratio of count of special characters and length of subStrings
static double countRatio ( char [ ] s , char [ ] special ) { int n = s . length ; for ( int i = 0 ; i < n ; i ++ ) {