function getInventory(name) {
  const hash = name
    .split('')
    .reduce((acc, char) => acc + char.charCodeAt(0), 0);
  return hash % 11;
}
Generates deterministic inventory (0-10) based on the name.
@param {string} name - The name of the variant.
@returns {number} - The inventory count of the variant.