Wrong Test case?
In the case of multiple answers as shown in the second example below, you may return any one of them.
Input: "aaaaaxaaaaa" ["bbbbbxbbbbb"] Output: "9a1" Expected: "a10"
Check the description of question again :)
"Each number or letter in the abbreviation is considered length = 1. For example, the abbreviation "a32bc" has length = 4."
@erica76 Thank you for pointing out.