text: import { NotImplementedError } from '../extensions/index.js';
  
  /**
   * Given some integer, find the maximal number you can obtain
   * by deleting exactly one digit of the given number.
   *
   * @param {Number} n
   * @return {Number}
   *
   * @example
   * For n = 152, the output should be 52
   *
   */
  export default function deleteDigit(n) {
    let numStr = n.toString(10);
    let max = 0;
    for (let i of numStr) {
      let str = numStr.replace(i, "");
      let num = parseInt(str);
      if (num > max) {
        max = num;
      }
    }
    return max;
  }
  