C # code to find the minimum number of swaps required to make the String K periodic
using System ; class GFG { static void minFlip ( String s , int n , int k , char [ ] a , int p ) { bool [ ] allowed = new bool [ 26 ] ; for ( int i = 0 ; i < p ; i ++ ) {