Solution for String Matching

Exactly what it says in the title.