Company: Uber_all
Difficulty: medium
Signal Blocks Problem Description Uber is testing a new multi-port charging strip used in electric vehicle hubs. Each port can handle a limited type of charge signal identified by characters 'a', 'e', 'i', 'o', and 'u', which correspond to different current frequencies. A diagnostic system logs these signals in a string logSignals . You need to find how many contiguous signal blocks: Contains only these five signal types (i.e., no other characters), and Includes all five signal types at least once within the block. Implement a function that determines the number of such contiguous signal blocks. The function countCompleteSignalBlocks takes the following input: string logSignals : log of signal types (lowercase letters) The function should return a long integer denoting the number of contiguous blocks with only the five signal types and each appearing at least once. Examples Example 1: Input: logSignals = "aeioaexaaeiou" Output: 4 Explanation: In this scenario, all the contiguous signal