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 array = [];
    const str = String(n);
    for(let i = 0; i < str.length; i++){
      array.push(Number(str.substr(0, i) + '' + str.substr(i + 1)));
    }
    array.sort((a,b) => b - a);
    return array[0];
  }