Digit String

We are giving you a number N and your task is to generate a N digit string where the string reading from forward and backward are the same and lexicographically smallest. The generated string must contain only digits (0-1).

This is a companion discussion topic for the original entry at https://toph.co/p/d-digit-string