/**
 * Write a function that takes in two lists and returns a list containing the common elements between them.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val common = mutableListOf<Any>()

    // Iterate through each element in t1
    for (element1 in t1) {
        // Iterate through each element in t2
        for (element2 in t2) {
            // Compare the elements
            // If they are equal, add the element to the common list
            if (element1 == element2) {
                common.add(element1)
                // Since we found a common element, we can break out of the inner loop
                break
            }
        }
    }

    return common
}
/**
 * Write a function that takes in two lists and returns a list containing the common elements between them.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * Write a function that takes in two lists and returns a list containing the common elements between them.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val common = mutableListOf<Any>()

    // Iterate through each element in t1
    for (element1 in t1) {
        // Iterate through each element in t2
        for (element2 in t2) {
            // Compare the elements
            // If they are equal, add the element to the common list
            if (element1 == element2) {
                common.add(element1)
                // Since we found a common element, we can break out of the inner loop
                break
            }
        }
    }

    return common
}