/**
 * Given two lists of genes, organism1 and organism2, find the common genes between them.
 *
 * @param organism1 A list of genes from organism1.
 * @param organism2 A list of genes from organism2.
 * @return A list of common genes found in both organism1 and organism2.
 */
fun findCommonGenes(organism1: List<String>, organism2: List<String>): List<String> {

    val commonGenes = mutableListOf<String>()
    for (gene1 in organism1) {
        for (gene2 in organism2) {
            if (gene1 == gene2) {
                commonGenes.add(gene1)
                break
            }
        }
    }
    return commonGenes
}
/**
 * Given two lists of genes, organism1 and organism2, find the common genes between them.
 *
 * @param organism1 A list of genes from organism1.
 * @param organism2 A list of genes from organism2.
 * @return A list of common genes found in both organism1 and organism2.
 */
fun findCommonGenes(organism1: List<String>, organism2: List<String>): List<String> {
/**
 * Given two lists of genes, organism1 and organism2, find the common genes between them.
 *
 * @param organism1 A list of genes from organism1.
 * @param organism2 A list of genes from organism2.
 * @return A list of common genes found in both organism1 and organism2.
 */
fun findCommonGenes(organism1: List<String>, organism2: List<String>): List<String> {

    val commonGenes = mutableListOf<String>()
    for (gene1 in organism1) {
        for (gene2 in organism2) {
            if (gene1 == gene2) {
                commonGenes.add(gene1)
                break
            }
        }
    }
    return commonGenes
}