LeetCode
Binary String With Substrings Representing 1 To N
Click
here
for an explanation.