Company: jubilant_31aug
Difficulty: medium
Number of Characters Escaped Problem Description Given a string composed of lowercase English letters and the characters '#' (ASCII value 35) and '!' (ASCII value 33), determine how many times a character is escaped. A character is considered escaped if: It is a lowercase English letter, There is a '!' character immediately preceding it, and Both the lowercase English letter and the '!' character are enclosed within a pair of '#' characters. For example, in `expression = '#!abc!def!'`, the 'a' character would be considered escaped if the surrounding '#' were present. Complete the `numberOfCharactersEscaped` function in the editor with the following parameter(s): `expression`: a string to evaluate Returns: `int`: the number of characters that are escaped Examples Example 1: Input: expression = '#!lr#po#' Output: 0 Explanation: The string `#!lr#po#` has 8 characters. The 4th character is a lowercase English letter 'r'. Although there is a '!' character before this 'r', they are not betwe