/**
 * This function takes two sets of genes from different species and returns
 * the set of shared genes between them.
 *
 * @param species1 Set of genes of the first species.
 * @param species2 Set of genes of the second species.
 * @return Set containing the shared genes between species1 and species2.
 */
fun getSharedGenes(species1: Set<String>, species2: Set<String>): Set<String> {

    // Initialize an empty set to store the shared genes
    val sharedGenes = mutableSetOf<String>()

    // Iterate through each gene in species1
    for (gene in species1) {
        // Check if the gene is present in species2
        if (gene in species2) {
            sharedGenes.add(gene)
        }
    }

    return sharedGenes
}
/**
 * This function takes two sets of genes from different species and returns
 * the set of shared genes between them.
 *
 * @param species1 Set of genes of the first species.
 * @param species2 Set of genes of the second species.
 * @return Set containing the shared genes between species1 and species2.
 */
fun getSharedGenes(species1: Set<String>, species2: Set<String>): Set<String> {
/**
 * This function takes two sets of genes from different species and returns
 * the set of shared genes between them.
 *
 * @param species1 Set of genes of the first species.
 * @param species2 Set of genes of the second species.
 * @return Set containing the shared genes between species1 and species2.
 */
fun getSharedGenes(species1: Set<String>, species2: Set<String>): Set<String> {

    // Initialize an empty set to store the shared genes
    val sharedGenes = mutableSetOf<String>()

    // Iterate through each gene in species1
    for (gene in species1) {
        // Check if the gene is present in species2
        if (gene in species2) {
            sharedGenes.add(gene)
        }
    }

    return sharedGenes
}