Brute Force Method for Pattern Matching
BRUTE FORCE METHOD FOR PATTERN MATCHING