/**
 * Given two lists t1 and t2, return a list containing the common elements between the two lists.
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in list t1
    for (element in t1) {
        // Check if the element is present in list t2
        if (element in t2) {
            // Add the element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Given two lists t1 and t2, return a list containing the common elements between the two lists.
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * Given two lists t1 and t2, return a list containing the common elements between the two lists.
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in list t1
    for (element in t1) {
        // Check if the element is present in list t2
        if (element in t2) {
            // Add the element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}