code: function hasDotNesting(string) {
    const loc = string.indexOf('.');
    return (loc !== -1) && (loc !== 0) && (loc !== string.length - 1);
  }
docs: Returns true if string a dot in it at any position other than the first and last ones.