Viant interview question

string question of matching strings