you give stre s consecutive vertical bar group pair in word 1st 2nd pair 3rd 4th pair forthreturn number s exclude pair note belong exactly pair example 1input s leetcodeoutput 2explanation the considered character underline leetcodethe character second exclude answeralso character fourth exclude answerthere 2 asterisk consider therefore return 2example 2input s iamprogrammeroutput 0explanation in example asterisk s therefore return 0example 3input s youarebeautifuloutput 5explanation the considered character underline youarebeautiful there 5 asterisk consider therefore return 5 constraints1 slength 1000 consists lowercase english letter vertical bar asterisk s contain number vertical bar