/**
 * This function finds the common elements in two given lists using the OR operator.
 *
 * @param list1 First list of elements
 * @param list2 Second list of elements
 * @return A new list containing the common elements from both lists
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val common = mutableListOf<Any>()

    // Iterate over each element in list1
    for (elem1 in list1) {
        // Iterate over each element in list2
        for (elem2 in list2) {
            // Check if the current element from list1 is in list2
            if (elem1 == elem2) {
                common.add(elem1)
                // Break the inner loop once a common element is found
                break
            }
        }
    }

    return common
}
/**
 * This function finds the common elements in two given lists using the OR operator.
 *
 * @param list1 First list of elements
 * @param list2 Second list of elements
 * @return A new list containing the common elements from both lists
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function finds the common elements in two given lists using the OR operator.
 *
 * @param list1 First list of elements
 * @param list2 Second list of elements
 * @return A new list containing the common elements from both lists
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val common = mutableListOf<Any>()

    // Iterate over each element in list1
    for (elem1 in list1) {
        // Iterate over each element in list2
        for (elem2 in list2) {
            // Check if the current element from list1 is in list2
            if (elem1 == elem2) {
                common.add(elem1)
                // Break the inner loop once a common element is found
                break
            }
        }
    }

    return common
}