/**
 * Given two lists A and B, return the result of multiplying their intersected values.
 *
 * @param A First list with some integers
 * @param B Second list with some integers
 * @return The result of multiplying the intersected values
 *
 * Example:
 * multiplyTuples(listOf(2, 3, 5, 7), listOf(5, 7, 11)) // 35
 * multiplyTuples(listOf(1, 2, 3, 4), listOf(5, 6, 7, 8)) // 0
 */
fun multiplyTuples(A: List<Int>, B: List<Int>): Int {

    val intersectedValues = A.intersect(B)
    var intersectionProduct = 1
    for (value in intersectedValues) {
        intersectionProduct *= value
    }
    return intersectionProduct
}
/**
 * Given two lists A and B, return the result of multiplying their intersected values.
 *
 * @param A First list with some integers
 * @param B Second list with some integers
 * @return The result of multiplying the intersected values
 *
 * Example:
 * multiplyTuples(listOf(2, 3, 5, 7), listOf(5, 7, 11)) // 35
 * multiplyTuples(listOf(1, 2, 3, 4), listOf(5, 6, 7, 8)) // 0
 */
fun multiplyTuples(A: List<Int>, B: List<Int>): Int {
/**
 * Given two lists A and B, return the result of multiplying their intersected values.
 *
 * @param A First list with some integers
 * @param B Second list with some integers
 * @return The result of multiplying the intersected values
 *
 * Example:
 * multiplyTuples(listOf(2, 3, 5, 7), listOf(5, 7, 11)) // 35
 * multiplyTuples(listOf(1, 2, 3, 4), listOf(5, 6, 7, 8)) // 0
 */
fun multiplyTuples(A: List<Int>, B: List<Int>): Int {

    val intersectedValues = A.intersect(B)
    var intersectionProduct = 1
    for (value in intersectedValues) {
        intersectionProduct *= value
    }
    return intersectionProduct
}