text: If previous character is * then it will contain the above 2 cases
code: else if ( s [ i - 1 ] == ' * ' ) [ i + 1 ] = ( dp [ i + 1 ] + ( s [ i ] <= '6' ? 2 : 1 ) * dp [ i - 1 ] ) % M ; } } return ( int ) dp [ s . Length ] ; }