You are given two inputs:
Write a function that returns true if each abbreviation uniquely identifies a word, and false otherwise.
uniqueAbbrev(["ho", "h", "ha"], ["house", "hope", "happy"]) ➞ false
// "ho" and "h" are ambiguous and can identify either "house" or "hope"
uniqueAbbrev(["s", "t", "v"], ["stamina", "television", "vindaloo"]) ➞ true
uniqueAbbrev(["bi", "ba", "bat"], ["big", "bard", "battery"]) ➞ false
uniqueAbbrev(["mo", "ma", "me"], ["moment", "many", "mean"]) ➞ true
Abbreviations will be a substring from [0, n] from the original string.