ClaySys Technologies interview question

Basic coding logic for selecting file names of similar type.