/**
 * The function takes two lists as input and returns a list of common elements between them.
 * It uses short-circuiting and looping through the lists to find the common elements efficiently.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    var i = 0
    while (i < t1.size && i < t2.size) {
        if (t1[i] == t2[i]) {
            commonElements.add(t1[i])
        }
        i++
    }
    return commonElements
}
/**
 * The function takes two lists as input and returns a list of common elements between them.
 * It uses short-circuiting and looping through the lists to find the common elements efficiently.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * The function takes two lists as input and returns a list of common elements between them.
 * It uses short-circuiting and looping through the lists to find the common elements efficiently.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()
    var i = 0
    while (i < t1.size && i < t2.size) {
        if (t1[i] == t2[i]) {
            commonElements.add(t1[i])
        }
        i++
    }
    return commonElements
}