code: function getTokenParameters(index) {
      let stringLength;
      let indexWithOffset;
  
      indexWithOffset = index;
      for (stringLength = startLength; stringLength <= endLength; stringLength += 1) {
        const offsetCount = variants.length ** stringLength;
        if (indexWithOffset < offsetCount) {
          break;
        } else {
          indexWithOffset -= offsetCount;
        }
      }
  
      return {
        indexWithOffset,
        stringLength,
      };
    }
docs: calculate length of target combination and index for that particular length