Company: Wells_Frago_10_jan
Difficulty: medium
Count Journey Segments Problem Description A customer journey log is written as a string of lowercase letters in the ASCII range 'a'-'z'. Count the contiguous segments of this log made up entirely of key onboarding steps, where every one of those steps shows up at least once in the segment. The key steps are ['a', 'e', 'i', 'o', 'u'] , standing for account creation, email verification, identity confirmation, onboarding completion, and initial usage, respectively. A segment here means any contiguous run of characters within the log. Example For journeyLog = "aeioaxaeiuo" Scanning from the left, the run 'aeioa' is made entirely of step codes, but it's immediately followed by an 'x' , which isn't a key step, so that run can't be extended and it doesn't manage to cover all five key steps — it doesn't qualify. Further along, two runs do qualify: 'aeiuo' and 'aeio' . Function Description Complete the function countJourneySegments in the editor. It has the following parameter(s): string journ