function repeat (text, times) {
  let res = ''
  while (times-- > 0) {
    res += text
  }
  return res
}
Repeat a string a number of times.
Simple linear solution, we only need up to 10 iterations in practice
@param {string} text
@param {number} times
@return {string}