/**
 * This function takes in two lists as arguments and returns a list of common elements present in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list representing the common elements in both lists
 */
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 as arguments and returns a list of common elements present in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list representing the common elements in both lists
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists as arguments and returns a list of common elements present in both lists.
 *
 * @param list1 The first list
 * @param list2 The second list
 * @return A list representing the common elements in both lists
 */
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
}