ID Analytics interview question

Most efficient algorithm for 5-10 digit string finding