solution to Decode Ways