I need to create a string like this: 01-2--3---4----5-----6------7------- for a let n=7, using a loop. I\'ve created something like this so far:
01-2--3---4----5-----6------7-------