/**
 * Given two lists, find and return the common elements using the 'in' operator and conditional statements.
 *
 * @param list1 First list containing elements.
 * @param list2 Second list containing elements.
 * @return A new list containing the common elements.
 */
fun findCommonElement(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }
    return commonElements
}
/**
 * Given two lists, find and return the common elements using the 'in' operator and conditional statements.
 *
 * @param list1 First list containing elements.
 * @param list2 Second list containing elements.
 * @return A new list containing the common elements.
 */
fun findCommonElement(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find and return the common elements using the 'in' operator and conditional statements.
 *
 * @param list1 First list containing elements.
 * @param list2 Second list containing elements.
 * @return A new list containing the common elements.
 */
fun findCommonElement(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }
    return commonElements
}