TexttoCharArray if wordcontainsctoString. Can we reach from A to D by going through A to B or B to C or C to D. I have rearranged the word in such a way that all the vowel come together.
For example for four elements the sequence is as follows columns from left to right.
Final String text abcxaaabbbccyaxbcayxycab. I have rearranged the word in such a way that all the vowel come together. List charsActuallyFound new ArrayList. Now ask yourself should we add these cases or multiply.