/**
 * Given two tuples 't1' and 't2', concatenate all strings from 't1' and 't2' and return as a single string.
 * Then return the resulting string in reverse, but only the substring from index 4 to 7 (inclusive).
 */
fun concatenateStringsAndTuples(t1: List<Any>, t2: List<Any>): String {

    // Concatenate all strings from 't1' and 't2'
    val concatString = (t1 + t2).filterIsInstance<String>().joinToString("")

    // Reverse the resulting string
    val reversedString = concatString.reversed()

    // Return the substring from index 4 to 7 (inclusive)
    return reversedString.substring(4..7)
}
/**
 * Given two tuples 't1' and 't2', concatenate all strings from 't1' and 't2' and return as a single string.
 * Then return the resulting string in reverse, but only the substring from index 4 to 7 (inclusive).
 */
fun concatenateStringsAndTuples(t1: List<Any>, t2: List<Any>): String {
/**
 * Given two tuples 't1' and 't2', concatenate all strings from 't1' and 't2' and return as a single string.
 * Then return the resulting string in reverse, but only the substring from index 4 to 7 (inclusive).
 */
fun concatenateStringsAndTuples(t1: List<Any>, t2: List<Any>): String {

    // Concatenate all strings from 't1' and 't2'
    val concatString = (t1 + t2).filterIsInstance<String>().joinToString("")

    // Reverse the resulting string
    val reversedString = concatString.reversed()

    // Return the substring from index 4 to 7 (inclusive)
    return reversedString.substring(4..7)
}