Given a string s consisting of lowercase English letters, calculate the reverse degree of the string.
The reverse degree is the sum of the products calculated for each character in s. For each character, multiply:
Its 'z' is 'y' is 'a' is
Its s.
Return the total reverse degree of s.
Constraints:
s.length
s contains only lowercase English letters.
Given a string s consisting of lowercase English letters, calculate the reverse degree of the string.
The reverse degree is the sum of the products calculated for each character in s. For each character, multiply:
Its 'z' is 'y' is 'a' is
Its s.
Return the total reverse degree of s.
Constraints:
s.length
s contains only lowercase English letters.