/**
 * Multiplies all negative integers within a tuple t by n.
 *
 * @param t The tuple containing integers.
 * @param n The multiplier for negative integers.
 * @return The tuple with negative integers multiplied by n.
 */
fun multiplyNegatives(t: List<Int>, n: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in t) {
        if (num is Int && num < 0) {
            result.add(num * n)
        } else {
            result.add(num)
        }
    }
    return result
}
/**
 * Multiplies all negative integers within a tuple t by n.
 *
 * @param t The tuple containing integers.
 * @param n The multiplier for negative integers.
 * @return The tuple with negative integers multiplied by n.
 */
fun multiplyNegatives(t: List<Int>, n: Int): List<Int> {
/**
 * Multiplies all negative integers within a tuple t by n.
 *
 * @param t The tuple containing integers.
 * @param n The multiplier for negative integers.
 * @return The tuple with negative integers multiplied by n.
 */
fun multiplyNegatives(t: List<Int>, n: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in t) {
        if (num is Int && num < 0) {
            result.add(num * n)
        } else {
            result.add(num)
        }
    }
    return result
}