/**
 * In this exercise, you are a biologist working with DNA sequences. You are given a dictionary
 * where the keys are nucleotide sequences and the values are the corresponding gene names.
 * Your task is to concatenate all the gene names together and loop through the dictionary to
 * print the nucleotide sequence and the gene name pairs.
 *
 * @param dictionary A dictionary where keys are nucleotide sequences and values are gene names.
 */
fun concatenateAndLoop(dictionary: Map<String, String>): String {

    var concatenatedGenes = ""
    for (geneName in dictionary.values) {
        concatenatedGenes += geneName
    }

    for ((nucleotideSequence, geneName) in dictionary) {
        println("Nucleotide sequence: $nucleotideSequence")
        println("Gene name: $geneName")
        println()
    }

    return concatenatedGenes
}

// Example usage
/**
 * In this exercise, you are a biologist working with DNA sequences. You are given a dictionary
 * where the keys are nucleotide sequences and the values are the corresponding gene names.
 * Your task is to concatenate all the gene names together and loop through the dictionary to
 * print the nucleotide sequence and the gene name pairs.
 *
 * @param dictionary A dictionary where keys are nucleotide sequences and values are gene names.
 */
fun concatenateAndLoop(dictionary: Map<String, String>): String {
/**
 * In this exercise, you are a biologist working with DNA sequences. You are given a dictionary
 * where the keys are nucleotide sequences and the values are the corresponding gene names.
 * Your task is to concatenate all the gene names together and loop through the dictionary to
 * print the nucleotide sequence and the gene name pairs.
 *
 * @param dictionary A dictionary where keys are nucleotide sequences and values are gene names.
 */
fun concatenateAndLoop(dictionary: Map<String, String>): String {

    var concatenatedGenes = ""
    for (geneName in dictionary.values) {
        concatenatedGenes += geneName
    }

    for ((nucleotideSequence, geneName) in dictionary) {
        println("Nucleotide sequence: $nucleotideSequence")
        println("Gene name: $geneName")
        println()
    }

    return concatenatedGenes
}

// Example usage