Implement or Write a program that can perform File search based on file extension regex mathcing like .xml, or search files with size geater than 5MB. The interviewer made a made a point that this class should be written in such a way that it can easily accomodate other kinds of search criteria.
Followup question: How would you change the class to allow search conditions with AND, OR?