Java implementation to find the permutation of the array such that sum of adjacent elements is not divisible by 3
import java . util . * ; class GFG { static final int hell = 1000000007 ; static final int N = 100005 ; static int c_0 , c_1 , c_2 ;