/**
 * Given two arrays, check if they have any common elements using the '!=' operator.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return True if there are common elements, False otherwise.
 */
fun checkCommonElements(arr1: List<Any?>, arr2: List<Any?>): Boolean {

    for (element in arr1) {
        if (element != null && element in arr2) {
            return true
        }
    }
    return false
}
/**
 * Given two arrays, check if they have any common elements using the '!=' operator.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return True if there are common elements, False otherwise.
 */
fun checkCommonElements(arr1: List<Any?>, arr2: List<Any?>): Boolean {
/**
 * Given two arrays, check if they have any common elements using the '!=' operator.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return True if there are common elements, False otherwise.
 */
fun checkCommonElements(arr1: List<Any?>, arr2: List<Any?>): Boolean {

    for (element in arr1) {
        if (element != null && element in arr2) {
            return true
        }
    }
    return false
}