Min Unique Word Abbreviation

Given a target word and a dictionary, find an abbreviation of target with the smallest possible length such that the abbreviation is valid for target and does not match any other word in the dictionary that has the same length as target. If multiple abbreviations have the same smallest length, any of them is accepted.

An abbreviation replaces one or more non-adjacent substrings with their lengths. Adjacent numbers are not allowed. An abbreviation matches a word if the abbreviation can be expanded to that word.

Examples
Input: ["apple",["blade"]]
Output: "a4"
Hints

Min Unique Word Abbreviation

Given a `target` word and a `dictionary`, find an abbreviation of `target` with the smallest possible length such that the abbreviation is valid for `target` and does not match any other word in the dictionary that has the same length as `target`. If multiple abbreviations have the same smallest length, any of them is accepted.