/**
 * The task is to find the common genes between two species based on their gene expression values.
 *
 * @param species1Genes A list of gene names from species 1
 * @param species2Genes A list of gene names from species 2
 * @param geneExpression A map containing gene expression values for both species, where the gene name is the key
 * @return A list of gene names that are present in both species and have gene expression value greater than 10
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>, geneExpression: Map<String, Int>): List<String> {

    val commonGenes = mutableListOf<String>()
    
    for (gene in species1Genes) {
        if (gene in species2Genes && geneExpression[gene]!! > 10) {
            commonGenes.add(gene)
        }
    }
    
    return commonGenes
}
/**
 * The task is to find the common genes between two species based on their gene expression values.
 *
 * @param species1Genes A list of gene names from species 1
 * @param species2Genes A list of gene names from species 2
 * @param geneExpression A map containing gene expression values for both species, where the gene name is the key
 * @return A list of gene names that are present in both species and have gene expression value greater than 10
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>, geneExpression: Map<String, Int>): List<String> {
/**
 * The task is to find the common genes between two species based on their gene expression values.
 *
 * @param species1Genes A list of gene names from species 1
 * @param species2Genes A list of gene names from species 2
 * @param geneExpression A map containing gene expression values for both species, where the gene name is the key
 * @return A list of gene names that are present in both species and have gene expression value greater than 10
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>, geneExpression: Map<String, Int>): List<String> {

    val commonGenes = mutableListOf<String>()
    
    for (gene in species1Genes) {
        if (gene in species2Genes && geneExpression[gene]!! > 10) {
            commonGenes.add(gene)
        }
    }
    
    return commonGenes
}