Function to find maximum count of X that are to be inserted into str such that no three consecutive characters are equal to X
static void maxNumberOfXAdded ( string str , char X ) { int ans = maxNumberOfXAddedUtil ( str , X ) ;