include i 'th character in all the current  subsequences of string [0...i-1]
dp [ i ] [ ( j * 10 + ( ord ( str [ i ] ) - ord ( '0' ) ) ) % n ] += dp [ i - 1 ] [ j ] NEW_LINE return dp [ l - 1 ] [ 0 ] NEW_LINE