https://akr2803.github.io/posts/construct-string-with-repeat-limit/
2182. Construct String With Repeat Limit - Aaryaveer