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 min = 9;
    let arr = Array.from(String(n));
    for(let item of arr ){
      if (item < min) min = item;
    }
    arr.splice(arr.indexOf(min),1);
    return +(arr.join(""));
  }
  