/**
 * Find the common items between two lists using list comprehension.
 * The function returns a new list containing the common items.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return List containing the common items between list1 and list2.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = list1.filter { it in list2 }
    return commonItems
}
/**
 * Find the common items between two lists using list comprehension.
 * The function returns a new list containing the common items.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return List containing the common items between list1 and list2.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Find the common items between two lists using list comprehension.
 * The function returns a new list containing the common items.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return List containing the common items between list1 and list2.
 */
fun findCommonItems(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonItems = list1.filter { it in list2 }
    return commonItems
}