/**
 * This function takes in two lists and returns a list of common elements between them.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return List of common elements between list1 and list2
 */
fun findCommonElements(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
}
/**
 * This function takes in two lists and returns a list of common elements between them.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return List of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns a list of common elements between them.
 *
 * @param list1 First input list
 * @param list2 Second input list
 * @return List of common elements between list1 and list2
 */
fun findCommonElements(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
}