masRepetido([1,5,2,4,3,5,6,5,1]); // [5, 3]
masRepetido(["a","b","c","d","b"]); // ["b", 2]
masRepetido([1,5,"a",4,"a",5,6,5,1]); // [5, 3]
masRepetido([]); // ["", 0]
getRepetitions("", "") # 0
getRepetitions("house", "a") # 0
getRepetitions("zzzz", "z") # 4
getRepetitions("zzzz", "zz") # 2
getRepetitions("zzzz", "zzz") # 1
getRepetitions("the big house", "big") # 1
getRepetitions("the big house is bigger than a plane", "big") # 2
getRepetions("", ""); // 0
getRepetions("house", "a"); // 0
getRepetions("zzzz", "z"); // 4
getRepetions("zzzz", "zz"); // 2
getRepetions("zzzz", "zzz"); // 1
getRepetions("the big house", "big"); // 1
getRepetions("the big house is bigger than a plane", "big"); // 2
count_occurrences([1, 2, 3, 4, 5], 5) # 1
count_occurrences([1, 2, 2, 2, 5], 2) # 3
count_occurrences([1, 2, 2, 2, 5], 7) # 0
count_occurrences([], 7) # 0
count_occurrences(["b", "a", "b", "c", "d"], "b") # 2
duplicateCount(""); // 0
duplicateCount("abcde"); // 0
duplicateCount("aabbcde"); // 2
duplicateCount("aabBcde"); // 2
duplicateCount("indivisibility"); // 1
duplicateCount("Indivisibilities"); // 2
duplicateCount("aA11"); // 2
duplicateCount("ABBA"); // 2