/**
 * Given a dictionary of rock types and their respective ages, iterate over the keys and values in the dictionary.
 * Concatenate each rock type with ' million' and repeat the concatenated string 'repeat' number of times.
 * Return a list containing all the repeated concatenated strings.
 */
fun iterateAndConcatenate(dictionary: Map<String, Int>, repeat: Int): List<String> {

    val result = mutableListOf<String>()
    
    // Iterate over the keys and values in the dictionary
    for ((rockType, age) in dictionary) {
        
        // Concatenate rock type with ' million' and repeat it 'repeat' number of times
        val concatenatedString = (rockType + " million").repeat(repeat)
        
        // Add the concatenated string to the result list
        result.add(concatenatedString)
    }
    
    return result
}
/**
 * Given a dictionary of rock types and their respective ages, iterate over the keys and values in the dictionary.
 * Concatenate each rock type with ' million' and repeat the concatenated string 'repeat' number of times.
 * Return a list containing all the repeated concatenated strings.
 */
fun iterateAndConcatenate(dictionary: Map<String, Int>, repeat: Int): List<String> {
/**
 * Given a dictionary of rock types and their respective ages, iterate over the keys and values in the dictionary.
 * Concatenate each rock type with ' million' and repeat the concatenated string 'repeat' number of times.
 * Return a list containing all the repeated concatenated strings.
 */
fun iterateAndConcatenate(dictionary: Map<String, Int>, repeat: Int): List<String> {

    val result = mutableListOf<String>()
    
    // Iterate over the keys and values in the dictionary
    for ((rockType, age) in dictionary) {
        
        // Concatenate rock type with ' million' and repeat it 'repeat' number of times
        val concatenatedString = (rockType + " million").repeat(repeat)
        
        // Add the concatenated string to the result list
        result.add(concatenatedString)
    }
    
    return result
}