/**
 * This function takes two tuples as input and subtracts the elements at corresponding indices.
 */
fun subtractTuples(t1: List<Int>, t2: List<Int>): List<Int> {

    if (t1 is List<Int> && t2 is List<Int>) {
        val result = mutableListOf<Int>()
        for (i in t1.indices) {
            result.add(t1[i] - t2[i])
        }
        return result
    } else {
        return listOf(-1) // Invalid input. Please provide two tuples as arguments.
    }
}
/**
 * This function takes two tuples as input and subtracts the elements at corresponding indices.
 */
fun subtractTuples(t1: List<Int>, t2: List<Int>): List<Int> {
/**
 * This function takes two tuples as input and subtracts the elements at corresponding indices.
 */
fun subtractTuples(t1: List<Int>, t2: List<Int>): List<Int> {

    if (t1 is List<Int> && t2 is List<Int>) {
        val result = mutableListOf<Int>()
        for (i in t1.indices) {
            result.add(t1[i] - t2[i])
        }
        return result
    } else {
        return listOf(-1) // Invalid input. Please provide two tuples as arguments.
    }
}