4 single-digit numbers that look like individual keypad numbers as below are placed one in each quadrant. then click their equivalents are in quadrant number order code example

Example 1: Return the Cartesian product of this RDD and another one, that is, the RDD of all pairs of elements (a, b) where a is in self and b is in other.

rdd = sc.parallelize([1, 2])
sorted(rdd.cartesian(rdd).collect())
# [(1, 1), (1, 2), (2, 1), (2, 2)]

Example 2: create a function that takes in an array of numbers and returns only the number that are even after 1 is added to the value

const evenAfter = (arr) => {
    let i = 0
    let newArr = []
    while (i <= arr.length) {
        if ((arr[i] + 1) % 2 === 0){          
            newArr.push(arr[i])
        }  
        i++
    }
    return newArr
}

console.log(evenAfter([3,6,7,8,9,11]))