Design a pattern matching system | Hello Interview