Utility function to find the minimum number of swaps of pair of characters required to make all pairs of adjacent characters different
void minimumSwaps ( string & S , int & ansSwaps , int swaps = 0 , int idx = 0 ) {