/**
 * Given two lists of genes belonging to different species, return a list of common genes present in both species.
 * Genes are represented as strings.
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>): List<String> {

    val commonGenes = mutableListOf<String>()

    for (gene1 in species1Genes) {
        for (gene2 in species2Genes) {
            if (gene1 == gene2) {
                commonGenes.add(gene1)
            }
        }
    }

    return commonGenes
}
/**
 * Given two lists of genes belonging to different species, return a list of common genes present in both species.
 * Genes are represented as strings.
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>): List<String> {
/**
 * Given two lists of genes belonging to different species, return a list of common genes present in both species.
 * Genes are represented as strings.
 */
fun findCommonGenes(species1Genes: List<String>, species2Genes: List<String>): List<String> {

    val commonGenes = mutableListOf<String>()

    for (gene1 in species1Genes) {
        for (gene2 in species2Genes) {
            if (gene1 == gene2) {
                commonGenes.add(gene1)
            }
        }
    }

    return commonGenes
}