Write stretch(s, n) that repeats s until the text is at least n characters long, then returns the first n characters. s is not empty.
stretch('ab', 5)
→ 'ababa'stretch('xyz', 3)
→ 'xyz'Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.