Meta interview question

Decode Ways question from leetcode. Same question from leetcode