code: function findR1R2(word) {
    let r1 = '',
        r2 = '';
  
    for (let i = 0, l = word.length; i < l; i++) {
      if (!VOWELS.has(word[i]) && VOWELS.has(word[i - 1])) {
        r1 = word.slice(i + 1);
        break;
      }
    }
  
    for (let i = 0, l = r1.length; i < l; i++) {
      if (!VOWELS.has(r1[i]) && VOWELS.has(r1[i - 1])) {
        r2 = r1.slice(i + 1);
        break;
      }
    }
  
    return [r1, r2];
  }
docs: Helpers.