You are given a string word. A letter is considered a special character if it appears in word in both its lowercase and uppercase forms.
Return the total number of special characters present in word.
Constraints:
word.length
word consists of only lowercase and uppercase English letters.
You are given a string word. A letter is considered a special character if it appears in word in both its lowercase and uppercase forms.
Return the total number of special characters present in word.
Constraints:
word.length
word consists of only lowercase and uppercase English letters.