A pattern formed by two characters a and b is repeated more than once in the following string: ×b×a×a××a×a×bab What is ×× in the 7th and 8th positions from the left in the above string?
Explanation
The substring "bab" contains a repetition of the pattern "ba", and the two characters in the 7th and 8th positions from the left correspond to the last two characters of "bab", which are "bb". Therefore, the answer is "bb".