/**
 * Given two lists, find and return a list of common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return a list of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Your task is to complete the implementation of this function by using
    // the '==' operator to find the common elements.

    // Iterate through each element in list1
    for (element1 in list1) {
        // Iterate through each element in list2
        for (element2 in list2) {
            // Check if the current elements in both lists are the same using the '==' operator
            if (element1 == element2) {
                // If the elements are the same, add it to the commonElements list
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}
/**
 * Given two lists, find and return a list of common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return a list of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find and return a list of common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return a list of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Your task is to complete the implementation of this function by using
    // the '==' operator to find the common elements.

    // Iterate through each element in list1
    for (element1 in list1) {
        // Iterate through each element in list2
        for (element2 in list2) {
            // Check if the current elements in both lists are the same using the '==' operator
            if (element1 == element2) {
                // If the elements are the same, add it to the commonElements list
                commonElements.add(element1)
            }
        }
    }

    return commonElements
}