/**
 * This function takes in two lists as arguments and returns a new list containing elements that are common to both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A new list containing common elements from list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    for (elem1 in list1) {
        for (elem2 in list2) {
            if (elem1 == elem2) {
                commonElements.add(elem1)
            }
        }
    }
    return commonElements
}
/**
 * This function takes in two lists as arguments and returns a new list containing elements that are common to both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A new list containing common elements from list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists as arguments and returns a new list containing elements that are common to both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A new list containing common elements from list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

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