/**
 * Given two lists, returns a new list containing the common elements between them.
 * Uses slicing and None as a placeholder.
 *
 * @param lst1 the first list
 * @param lst2 the second list
 * @return A new list containing the common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // TODO: Use slicing and None as a placeholder to find the common elements between lst1 and lst2
    // HINT: You can iterate through one list and compare each element with the corresponding element in the other list using slicing and None as a placeholder.
    // HINT: If an element in the first list is equal to the corresponding element or None in the second list, add it to commonElements.

    for (i in lst1.indices) {
        if (lst1[i] == lst2[i] || lst2[i] == null) {
            commonElements.add(lst1[i])
        }
    }

    return commonElements
}
/**
 * Given two lists, returns a new list containing the common elements between them.
 * Uses slicing and None as a placeholder.
 *
 * @param lst1 the first list
 * @param lst2 the second list
 * @return A new list containing the common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {
/**
 * Given two lists, returns a new list containing the common elements between them.
 * Uses slicing and None as a placeholder.
 *
 * @param lst1 the first list
 * @param lst2 the second list
 * @return A new list containing the common elements between lst1 and lst2.
 */
fun findCommonElements(lst1: List<Any>, lst2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // TODO: Use slicing and None as a placeholder to find the common elements between lst1 and lst2
    // HINT: You can iterate through one list and compare each element with the corresponding element in the other list using slicing and None as a placeholder.
    // HINT: If an element in the first list is equal to the corresponding element or None in the second list, add it to commonElements.

    for (i in lst1.indices) {
        if (lst1[i] == lst2[i] || lst2[i] == null) {
            commonElements.add(lst1[i])
        }
    }

    return commonElements
}