getCommonSuffix = (items) => {
  let suffix = items[0];

  for (let i = 1; i < items.length; i++) {
    const item = items[i];
    for (let p = item.length - 1, s = suffix.length - 1; s >= 0; p--, s--) {
      if (item[p] !== suffix[s]) {
        suffix = suffix.slice(s + 1);
        break;
      }
    }
  }

  return suffix;
}
@param {Array<string>} items items
@returns {string} common suffix