Create a function that takes a string as an argument and tells the number of repitions of a substring. It is exactly vice versa to repeating a string function (i.e. if a string "k" is given and asked to make a larger string "z" such that "k" is repated "n' times).
In this scenario, we do the opposite. Given the final string, and ask the number of times the substring is repeated.
numberOfRepeats("abcabcabcabc" ) ➞ 4
numberOfRepeats("bcbcbc") ➞ 3
numberOfRepeats("llbllbllbllbllbllb") ➞ 6
numberOfRepeats("kc") ➞ 1