Outreach interview question

Design an algorithm to parse through a pattern of strings