Smallest sparse number greater than or equal to N

hard
Smallest sparse number greater than or equal to N - Coding Problem | K5kC