Problem
You have intercepted a secret message encoded as a string of numbers. The message is decoded via the mapping:"1" -> 'A', "2" -> 'B', ..., "26" -> 'Z'. Given a string s containing only digits, return the number of ways to decode it. Return 0 if it cannot be decoded.
Examples
Constraints
- 1 <= s.length <= 100
- s contains only digits and may contain leading zero(s)