/**
 * This exercise aims to test your knowledge of accessing elements in a list and using the OR operator.
 * You need to implement a function that finds common elements between two lists using a single list comprehension.
 *
 * @param list1 A list of elements.
 * @param list2 Another list of elements.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    return list1.filter { element -> element in list2 }
}
/**
 * This exercise aims to test your knowledge of accessing elements in a list and using the OR operator.
 * You need to implement a function that finds common elements between two lists using a single list comprehension.
 *
 * @param list1 A list of elements.
 * @param list2 Another list of elements.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This exercise aims to test your knowledge of accessing elements in a list and using the OR operator.
 * You need to implement a function that finds common elements between two lists using a single list comprehension.
 *
 * @param list1 A list of elements.
 * @param list2 Another list of elements.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    return list1.filter { element -> element in list2 }
}