/**
 * Given two lists of strings, arr1 and arr2, find the count of common elements present in both lists.
 *
 * @param arr1 A list of strings.
 * @param arr2 A list of strings.
 * @return The count of common elements between arr1 and arr2.
 */
fun countIntersection(arr1: List<String>, arr2: List<String>): Int {

    var count = 0

    // Iterate over all elements in arr1
    for (i in arr1.indices) {
        
        // Iterate over all elements in arr2
        for (j in arr2.indices) {

            // Check if the current element in arr1 exists in arr2
            if (arr1[i] == arr2[j]) {
                
                // Increment the count if it is present in both lists
                count++
            }
        }
    }
    
    return count
}
/**
 * Given two lists of strings, arr1 and arr2, find the count of common elements present in both lists.
 *
 * @param arr1 A list of strings.
 * @param arr2 A list of strings.
 * @return The count of common elements between arr1 and arr2.
 */
fun countIntersection(arr1: List<String>, arr2: List<String>): Int {
/**
 * Given two lists of strings, arr1 and arr2, find the count of common elements present in both lists.
 *
 * @param arr1 A list of strings.
 * @param arr2 A list of strings.
 * @return The count of common elements between arr1 and arr2.
 */
fun countIntersection(arr1: List<String>, arr2: List<String>): Int {

    var count = 0

    // Iterate over all elements in arr1
    for (i in arr1.indices) {
        
        // Iterate over all elements in arr2
        for (j in arr2.indices) {

            // Check if the current element in arr1 exists in arr2
            if (arr1[i] == arr2[j]) {
                
                // Increment the count if it is present in both lists
                count++
            }
        }
    }
    
    return count
}