1016. Binary String With Substrings Representing 1 To N