text: /**
   * The MAC-48 address is six groups of two hexadecimal digits (0 to 9 or A to F),
   * separated by hyphens.
   *
   * Your task is to check by given string inputString
   * whether it's a MAC-48 address or not.
   *
   * @param {Number} inputString
   * @return {Number}
   *
   * @example
   * For 00-1B-63-84-45-E6, the output should be true.
   *
   */
  function isMAC48Address(n) {
    // throw new Error('Not implemented');
    const arr = n.split('-');
    let check = 0;
    arr.forEach((element) => {
      const result = element.match(/[A-F0-9]/);
      if (result !== null && element.length === 2) {
        const ignore = element.match(/[^G-Za-z]/g);
        if (ignore.length === 2) ++check;
      }
    });
    let result = false;
    if (check === 6) result = true;
    return result;
  }
  
  module.exports = isMAC48Address;
  