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 < Integer > ones , Stack < Integer > twos , Stack < Integer > zeros ) {