In a command prompt, entering dir pattern searches only for file names that match the pattern. A pattern may contain lowercase English letters, periods (.), and question marks (?). A question mark matches any single character.
You are given the file names that appeared in a search result. Print a pattern that can produce this result. Use as few question marks as possible. The directory contains only the given files, and all file names have the same length.