Given a string of the form "BLAHBLAHBLAHBLAHBLAH...BLAHAPPLEAPPLEAPPLEAPPLE...APPLE", i.e., consisting of a bunch of concatenated "BLAH"s followed by a bunch of concatenated "APPLE"s, find the starting index of the first occurence of "APPLE". Both "BLAH" and "APPLE" may appear zero or more times.
Examples