public static void main(String[] args) {
		// TODO Auto-generated method stub
		char[] s = {'A', 'C', 'D', 'B', 'C', 'B'};
		char[] relt = solve(s);
		
		for(int i = 0; i < relt.length; i++) 
			System.out.println(relt[i] + " ");

	}