You are given a string s consisting of lowercase English letters and digits.
Each character has a corresponding mirror character:
For lowercase English letters, the 'a' pairs with 'z', 'b' pairs with 'y', and so on up to 'm' pairing with 'n').
For digits, each digit '0' pairs with '9', '1' pairs with '8', and so on up to '4' pairing with '5').
For every unique mirror pair freq(c) and freq(m) denote the number of occurrences of characters s respectively.
Return the sum of
Constraints:
s.length
s consists only of lowercase English letters and digits.
You are given a string s consisting of lowercase English letters and digits.
Each character has a corresponding mirror character:
For lowercase English letters, the 'a' pairs with 'z', 'b' pairs with 'y', and so on up to 'm' pairing with 'n').
For digits, each digit '0' pairs with '9', '1' pairs with '8', and so on up to '4' pairing with '5').
For every unique mirror pair freq(c) and freq(m) denote the number of occurrences of characters s respectively.
Return the sum of
Constraints:
s.length
s consists only of lowercase English letters and digits.