/**
 * Function that takes a list of DNA sequences and an integer 'n'.
 * It should modify each sequence by adding 'n' extra bases to all the sequences, such that each base is repeated 'n' times.
 * The modified sequences should be returned as a list.
 */
fun modifyDnaSequences(sequences: List<String>, n: Int): List<String> {

    val modifiedSequences = mutableListOf<String>()

    for (sequence in sequences) {
        var modifiedSequence = ""
        for (base in sequence) {
            modifiedSequence += base.toString().repeat(n)
        }
        modifiedSequences.add(modifiedSequence)
    }

    return modifiedSequences
}
/**
 * Function that takes a list of DNA sequences and an integer 'n'.
 * It should modify each sequence by adding 'n' extra bases to all the sequences, such that each base is repeated 'n' times.
 * The modified sequences should be returned as a list.
 */
fun modifyDnaSequences(sequences: List<String>, n: Int): List<String> {
/**
 * Function that takes a list of DNA sequences and an integer 'n'.
 * It should modify each sequence by adding 'n' extra bases to all the sequences, such that each base is repeated 'n' times.
 * The modified sequences should be returned as a list.
 */
fun modifyDnaSequences(sequences: List<String>, n: Int): List<String> {

    val modifiedSequences = mutableListOf<String>()

    for (sequence in sequences) {
        var modifiedSequence = ""
        for (base in sequence) {
            modifiedSequence += base.toString().repeat(n)
        }
        modifiedSequences.add(modifiedSequence)
    }

    return modifiedSequences
}