Decode Ways O(1) space complexity