Dropbox Interview Question

given filepath and a pattern, return whether pattern exists in the file given by filepath.