/**
 * This function takes in two lists as input and returns a new list
 * containing the common items from both lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common items.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = mutableListOf<Any>()

    // Write your code here to find common items between list1 and list2
    for (item in list1) {
        if (item in list2) {
            commonItems.add(item)
        }
    }

    return commonItems
}
/**
 * This function takes in two lists as input and returns a new list
 * containing the common items from both lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common items.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists as input and returns a new list
 * containing the common items from both lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common items.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = mutableListOf<Any>()

    // Write your code here to find common items between list1 and list2
    for (item in list1) {
        if (item in list2) {
            commonItems.add(item)
        }
    }

    return commonItems
}