/**
 * Given two DNA sequences, this function should count the number of mutations that occurred between them.
 * A mutation occurs when a nucleotide in one sequence is different from the corresponding nucleotide in the other sequence.
 *
 * @param sequence1 The first DNA sequence.
 * @param sequence2 The second DNA sequence.
 * @return The number of mutations that occurred between the two sequences.
 */
fun countMutations(sequence1: String, sequence2: String): Int {

    var mutations = 0

    // Iterate over each pair of nucleotides at the same index position in both sequences
    for ((nucleotide1, nucleotide2) in sequence1.zip(sequence2)) {
        // Check if nucleotides are different
        if (nucleotide1 != nucleotide2) {
            mutations++
        }
    }

    return mutations
}
/**
 * Given two DNA sequences, this function should count the number of mutations that occurred between them.
 * A mutation occurs when a nucleotide in one sequence is different from the corresponding nucleotide in the other sequence.
 *
 * @param sequence1 The first DNA sequence.
 * @param sequence2 The second DNA sequence.
 * @return The number of mutations that occurred between the two sequences.
 */
fun countMutations(sequence1: String, sequence2: String): Int {
/**
 * Given two DNA sequences, this function should count the number of mutations that occurred between them.
 * A mutation occurs when a nucleotide in one sequence is different from the corresponding nucleotide in the other sequence.
 *
 * @param sequence1 The first DNA sequence.
 * @param sequence2 The second DNA sequence.
 * @return The number of mutations that occurred between the two sequences.
 */
fun countMutations(sequence1: String, sequence2: String): Int {

    var mutations = 0

    // Iterate over each pair of nucleotides at the same index position in both sequences
    for ((nucleotide1, nucleotide2) in sequence1.zip(sequence2)) {
        // Check if nucleotides are different
        if (nucleotide1 != nucleotide2) {
            mutations++
        }
    }

    return mutations
}