/**
 * This function takes a list of tuples as input and multiplies the second element of each tuple by the index of the tuple.
 *
 * @param tuples A list of tuples
 * @return A list of modified tuples
 *
 * Example:
 * multiplyTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [(1, 0), (3, 4), (5, 12)]
 */
fun multiplyTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    return tuples.mapIndexed { index, pair ->
        Pair(pair.first, pair.second * index)
    }
}
/**
 * This function takes a list of tuples as input and multiplies the second element of each tuple by the index of the tuple.
 *
 * @param tuples A list of tuples
 * @return A list of modified tuples
 *
 * Example:
 * multiplyTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [(1, 0), (3, 4), (5, 12)]
 */
fun multiplyTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {
/**
 * This function takes a list of tuples as input and multiplies the second element of each tuple by the index of the tuple.
 *
 * @param tuples A list of tuples
 * @return A list of modified tuples
 *
 * Example:
 * multiplyTuples(listOf(1 to 2, 3 to 4, 5 to 6)) returns [(1, 0), (3, 4), (5, 12)]
 */
fun multiplyTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    return tuples.mapIndexed { index, pair ->
        Pair(pair.first, pair.second * index)
    }
}