Java program to count number of ways to arrange three types of balls such that no two balls of same color are adjacent to each other
import java . util . Arrays ; class GFG { static final int MAX = 100 ;