Validate word abbreviation and reconcile two abbreviations | Meta Interview Question