ProblemHackerRank detailed problem description can be found here. Inputs & Outputs/* param {string} s param {number} n returns {number} Number of `a` occurances */Test CasesrepeatedString('aba', 10); repeatedString('a', 1000000);Pseudo CodeLet's figure out how many times the string s will be repeated in our algorithm without remainder and record