title: Algorithm for exclusion of numbers
body: <p>You are given a integer N which fits in long(less than 2^63-1) and 50 other integers. Your task is to find how many numbers from 1 to N contain none of the 50 numbers as its substring?</p>
  
  <p>This question is from an interview.</p>