/**
 * Given a list of file names and an extension, filter out the file names that do not have the specified extension.
 *
 * @param fileNames A list of file names
 * @param extension The desired extension
 * @return A list of file names with the specified extension
 */
fun filterFilesByExtension(fileNames: List<String>, extension: String): List<String> {

    // Use filter function to filter the file names
    return fileNames.filter { it.endsWith(extension) }
}
/**
 * Given a list of file names and an extension, filter out the file names that do not have the specified extension.
 *
 * @param fileNames A list of file names
 * @param extension The desired extension
 * @return A list of file names with the specified extension
 */
fun filterFilesByExtension(fileNames: List<String>, extension: String): List<String> {
/**
 * Given a list of file names and an extension, filter out the file names that do not have the specified extension.
 *
 * @param fileNames A list of file names
 * @param extension The desired extension
 * @return A list of file names with the specified extension
 */
fun filterFilesByExtension(fileNames: List<String>, extension: String): List<String> {

    // Use filter function to filter the file names
    return fileNames.filter { it.endsWith(extension) }
}