Function to modify a string such that there doesn 't exist any pair  of indices consisting of 1s, whose  GCD is 1 and are divisible by each other
public static void findString ( char [ ] S , int N ) { int strLen = 4 * N ;