Generalized Abbreviation
Generate all possible generalized abbreviations of a word by replacing one or more non-overlapping substrings with their lengths (counts of consecutive abbreviated characters), keeping other characters as-is. The order of abbreviations in the returned list is not restricted unless the platform comparator requires a specific order.