Function to checks if any permutation of the array exists whose sum of adjacent pairs is not divisible by 3
void factorsOf3 ( int arr [ ] , int N ) { int a = 0 , b = 0 , c = 0 ; for ( int i = 0 ; i < N ; i ++ ) {