/**
 * This function finds the intersection between two arrays, using 'Less Than' operation and indexing.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return The intersection of the two arrays.
 */
fun artistIntersection(arr1: List<Int>, arr2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    // Loop through each element in arr1
    for (element1 in arr1) {
        // Check if the current element in arr1 is less than any element in arr2
        if (arr2.any { element2 -> element1 < element2 }) {
            // Append the element to the intersection list
            intersection.add(element1)
        }
    }

    return intersection
}
/**
 * This function finds the intersection between two arrays, using 'Less Than' operation and indexing.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return The intersection of the two arrays.
 */
fun artistIntersection(arr1: List<Int>, arr2: List<Int>): List<Int> {
/**
 * This function finds the intersection between two arrays, using 'Less Than' operation and indexing.
 *
 * @param arr1 The first array.
 * @param arr2 The second array.
 * @return The intersection of the two arrays.
 */
fun artistIntersection(arr1: List<Int>, arr2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    // Loop through each element in arr1
    for (element1 in arr1) {
        // Check if the current element in arr1 is less than any element in arr2
        if (arr2.any { element2 -> element1 < element2 }) {
            // Append the element to the intersection list
            intersection.add(element1)
        }
    }

    return intersection
}