If s [ i - 1 ] = = ' * ' the union of above 2 cases has to be done
else if ( s [ i - 1 ] == ' * ' ) second = ( second + ( s [ i ] <= '6' ? 2 : 1 ) * first ) % M ; } first = temp ; } return ( int ) second ; }