/**
 * This function takes multiple DNA sequences as input and concatenates them together.
 * It also repeats the concatenated sequence based on the given range and returns the final sequence.
 *
 * @param name Name of the final DNA sequence.
 * @param seq1 First DNA sequence.
 * @param seq2 Second DNA sequence.
 * @param seq3 Third DNA sequence.
 * @param start Starting position of the range.
 * @param end Ending position of the range (exclusive).
 * @param repeat Number of times the sequence will be repeated.
 * @return Final DNA sequence after concatenation and repetition.
 */
fun createDnaSequence(name: String, seq1: String, seq2: String, seq3: String, start: Int, end: Int, repeat: Int): String {

    val concatenatedSequence = seq1 + seq2 + seq3
    val finalSequence = concatenatedSequence.repeat(repeat)
    val dnaRange = start until end

    var result = ""

    for (i in dnaRange) {
        result += finalSequence[i]
    }

    return result
}
/**
 * This function takes multiple DNA sequences as input and concatenates them together.
 * It also repeats the concatenated sequence based on the given range and returns the final sequence.
 *
 * @param name Name of the final DNA sequence.
 * @param seq1 First DNA sequence.
 * @param seq2 Second DNA sequence.
 * @param seq3 Third DNA sequence.
 * @param start Starting position of the range.
 * @param end Ending position of the range (exclusive).
 * @param repeat Number of times the sequence will be repeated.
 * @return Final DNA sequence after concatenation and repetition.
 */
fun createDnaSequence(name: String, seq1: String, seq2: String, seq3: String, start: Int, end: Int, repeat: Int): String {
/**
 * This function takes multiple DNA sequences as input and concatenates them together.
 * It also repeats the concatenated sequence based on the given range and returns the final sequence.
 *
 * @param name Name of the final DNA sequence.
 * @param seq1 First DNA sequence.
 * @param seq2 Second DNA sequence.
 * @param seq3 Third DNA sequence.
 * @param start Starting position of the range.
 * @param end Ending position of the range (exclusive).
 * @param repeat Number of times the sequence will be repeated.
 * @return Final DNA sequence after concatenation and repetition.
 */
fun createDnaSequence(name: String, seq1: String, seq2: String, seq3: String, start: Int, end: Int, repeat: Int): String {

    val concatenatedSequence = seq1 + seq2 + seq3
    val finalSequence = concatenatedSequence.repeat(repeat)
    val dnaRange = start until end

    var result = ""

    for (i in dnaRange) {
        result += finalSequence[i]
    }

    return result
}