a message contain letter AZ encode number follow mappingA 1B 2Z 26To decode encode message digit group map letter reverse mapping multiple way for example 11106 map intoAAJF group 1 1 10 6kjf group 11 10 6note group 1 11 06 invalid 06 map F 6 different 06in addition mapping encode message contain character represent digit 1 9 0 exclude for example encode message 1 represent encode message 11 12 13 14 15 16 17 18 19 Decoding 1 equivalent decode encode message representgiven string s consist digit character return number way decode itsince answer large return modulo 109 7 Example 1input s output 9explanation the encode message represent encode message 1 2 3 4 5 6 7 8 9each decode string a b c d e F g h I respectivelyhence total 9 way decode Example 2Input s 1output 18explanation the encode message represent encode message 11 12 13 14 15 16 17 18 19each encode message 2 way decode eg 11 decode AA KHence total 9 2 18 way decode 1Example 3input s 2output 15explanation the encode message represent encode message 21 22 23 24 25 26 27 28 2921 22 23 24 25 26 2 way decode 27 28 29 1 wayhence total 6 2 3 1 12 3 15 way decode 2 Constraints1 slength 105si digit