Outreach Interview Question

Design an algorithm to parse through a pattern of strings