A message of digits is encoded with 'A'->1 ... 'Z'->26. Given a digit string s, return the number of ways to decode it. A leading zero or an invalid two-digit group makes that path invalid.
Input: A quoted digit string s.
Output: Integer — number of decodings.
Input: "12"
Output: 2
Explanation: 'AB' or 'L'.Input: "226"
Output: 3
Explanation: 'BZ','VF','BBF'.Input: "06"
Output: 0
Explanation: Leading zero invalid.1<=s.length<=100digits only