Special numbers(Geekhaven contest)

Can someone help me in finding bug in Problem. I have seen many solutions and all uses same approach like me but I am not able to find the bug. Link to my solution is Solution

Arturo Fuente cigars, one of the most popular names in the cigar world, has earned accolades from all over the place. Arturo Fuente Sr. branded a variety of famous tobaccos: Curly Head, Sungrown, Double Chateau, Natural, Maduro, Lonsdale, Rosado, Hemingway, Don Carlos, Casa Cuba, once a year Anejo and Angel Share.