/**
 * This function takes two arrays as input and returns the multiplication of each element at the corresponding index.
 *
 * @param array1 The first array.
 * @param array2 The second array.
 * @return A new array with the multiplication of elements at the corresponding index.
 *
 * Example:
 * multiplyArrays(listOf(1, 2, 3), listOf(4, 5, 6)) returns [4, 10, 18]
 */
fun multiplyArrays(array1: List<Int>, array2: List<Int>): List<Int> {

    val result = mutableListOf<Int>()
    for (i in array1.indices) {
        result.add(array1[i] * array2[i])
    }
    return result
}
/**
 * This function takes two arrays as input and returns the multiplication of each element at the corresponding index.
 *
 * @param array1 The first array.
 * @param array2 The second array.
 * @return A new array with the multiplication of elements at the corresponding index.
 *
 * Example:
 * multiplyArrays(listOf(1, 2, 3), listOf(4, 5, 6)) returns [4, 10, 18]
 */
fun multiplyArrays(array1: List<Int>, array2: List<Int>): List<Int> {
/**
 * This function takes two arrays as input and returns the multiplication of each element at the corresponding index.
 *
 * @param array1 The first array.
 * @param array2 The second array.
 * @return A new array with the multiplication of elements at the corresponding index.
 *
 * Example:
 * multiplyArrays(listOf(1, 2, 3), listOf(4, 5, 6)) returns [4, 10, 18]
 */
fun multiplyArrays(array1: List<Int>, array2: List<Int>): List<Int> {

    val result = mutableListOf<Int>()
    for (i in array1.indices) {
        result.add(array1[i] * array2[i])
    }
    return result
}