/**
 * The function countItems takes in two lists, items1 and items2,
 * and returns the count of common items present in both lists.
 */
fun countItems(items1: List<String>, items2: List<String>): Int {

    var count = 0

    for (item in items1) {
        if (item in items2) {
            count++
        }
    }

    return count
}
/**
 * The function countItems takes in two lists, items1 and items2,
 * and returns the count of common items present in both lists.
 */
fun countItems(items1: List<String>, items2: List<String>): Int {
/**
 * The function countItems takes in two lists, items1 and items2,
 * and returns the count of common items present in both lists.
 */
fun countItems(items1: List<String>, items2: List<String>): Int {

    var count = 0

    for (item in items1) {
        if (item in items2) {
            count++
        }
    }

    return count
}