My problem is to find the repeating sequence of characters in the given array. simply, to identify the pattern in which the characters are appearing.
First write a method that find repeating substring sub in the container string as below.
boolean findSubRepeating(String sub, String container);
Now keep calling this method with increasing substring in the container, first try 1 character substring, then 2 characters, etc going upto container.length/2.