/**
 * Concatenates two strings as tuples
 *
 * @param str1 The first string
 * @param str2 The second string
 * @return Tuple with the concatenated strings
 */
fun concatenateTuples(str1: String, str2: String): List<Char> {

    // Create an empty list
    val result = mutableListOf<Char>()

    var index1 = 0
    var index2 = 0

    // Create a while loop that runs until both strings are empty
    while (index1 < str1.length || index2 < str2.length) {
        // Check if str1 still has characters
        if (index1 < str1.length) {
            // Get the character at index1 of str1 and add it to the result list
            result.add(str1[index1])
            index1++
        }

        // Check if str2 still has characters
        if (index2 < str2.length) {
            // Get the character at index2 of str2 and add it to the result list
            result.add(str2[index2])
            index2++
        }
    }

    return result
}
/**
 * Concatenates two strings as tuples
 *
 * @param str1 The first string
 * @param str2 The second string
 * @return Tuple with the concatenated strings
 */
fun concatenateTuples(str1: String, str2: String): List<Char> {
/**
 * Concatenates two strings as tuples
 *
 * @param str1 The first string
 * @param str2 The second string
 * @return Tuple with the concatenated strings
 */
fun concatenateTuples(str1: String, str2: String): List<Char> {

    // Create an empty list
    val result = mutableListOf<Char>()

    var index1 = 0
    var index2 = 0

    // Create a while loop that runs until both strings are empty
    while (index1 < str1.length || index2 < str2.length) {
        // Check if str1 still has characters
        if (index1 < str1.length) {
            // Get the character at index1 of str1 and add it to the result list
            result.add(str1[index1])
            index1++
        }

        // Check if str2 still has characters
        if (index2 < str2.length) {
            // Get the character at index2 of str2 and add it to the result list
            result.add(str2[index2])
            index2++
        }
    }

    return result
}