Function to return the length of the longest sub string having frequency of a character greater than half of the length of the sub string
int maxLength ( string s , int n ) { int ans = INT_MIN ; vector < int > A , L , R ; int freq [ n + 5 ] ;