/**
 * Given two lists, find the common items between them.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A list of common items between list1 and list2
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = mutableListOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonItems.add(item)
        }
    }

    return commonItems
}
/**
 * Given two lists, find the common items between them.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A list of common items between list1 and list2
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common items between them.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A list of common items between list1 and list2
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = mutableListOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonItems.add(item)
        }
    }

    return commonItems
}