Valid Word Abbreviation

Try to solve the Valid Word Abbreviation problem.

Statement

Given a string word and an abbreviation abbr, return TRUE if the abbreviation matches the given string. Otherwise, return FALSE.

A certain word "calendar" can be abbreviated as follows: ...

Access this course and 1400+ top-rated courses and projects.