/**
 * This exercise aims to count the number of mutations in a DNA sequence.
 * Given a DNA sequence, the function should iterate through each character and count the number of mutations,
 * considering only the characters that are not 'A', 'T', 'C', or 'G'.
 */
fun countMutations(dnaSequence: String): Int {

    var mutationCount = 0

    for (base in dnaSequence) {
        if (base !in listOf('A', 'T', 'C', 'G')) {
            mutationCount++
        }
    }

    return mutationCount
}
/**
 * This exercise aims to count the number of mutations in a DNA sequence.
 * Given a DNA sequence, the function should iterate through each character and count the number of mutations,
 * considering only the characters that are not 'A', 'T', 'C', or 'G'.
 */
fun countMutations(dnaSequence: String): Int {
/**
 * This exercise aims to count the number of mutations in a DNA sequence.
 * Given a DNA sequence, the function should iterate through each character and count the number of mutations,
 * considering only the characters that are not 'A', 'T', 'C', or 'G'.
 */
fun countMutations(dnaSequence: String): Int {

    var mutationCount = 0

    for (base in dnaSequence) {
        if (base !in listOf('A', 'T', 'C', 'G')) {
            mutationCount++
        }
    }

    return mutationCount
}