Function to find the permutation of the array such that sum of adjacent elements is not divisible by 3
static void printArrangement ( int [ ] arr , Stack < int > ones , Stack < int > twos , Stack < int > zeros ) {