Given a string s, count the number of asterisks '*' that do not appear between any pair of vertical bars '|'.
The vertical bars '|' are paired consecutively from left to right. That is, the characters between the
Return the total number of valid asterisks.
Constraints:
s.length
s consists of lowercase English letters, vertical bars '|', and asterisks '*'.
s contains an even number of vertical bars '|'.
Given a string s, count the number of asterisks '*' that do not appear between any pair of vertical bars '|'.
The vertical bars '|' are paired consecutively from left to right. That is, the characters between the
Return the total number of valid asterisks.
Constraints:
s.length
s consists of lowercase English letters, vertical bars '|', and asterisks '*'.
s contains an even number of vertical bars '|'.