/**
 * This function takes two lists as input and returns a new list containing 
 * the unique elements present in both lists.
 * 
 * @param lst1 First input list
 * @param lst2 Second input list
 * @return List of unique elements present in both input lists
 * 
 * Example:
 * findUniqueElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> [4, 5]
 */
fun findUniqueElements(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val uniqueElements = mutableListOf<Int>()
    
    for (element in lst1) {
        if (element in lst2 && lst1.count { it == element } == lst2.count { it == element }) {
            uniqueElements.add(element)
        }
    }
    
    return uniqueElements
}
/**
 * This function takes two lists as input and returns a new list containing 
 * the unique elements present in both lists.
 * 
 * @param lst1 First input list
 * @param lst2 Second input list
 * @return List of unique elements present in both input lists
 * 
 * Example:
 * findUniqueElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> [4, 5]
 */
fun findUniqueElements(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * This function takes two lists as input and returns a new list containing 
 * the unique elements present in both lists.
 * 
 * @param lst1 First input list
 * @param lst2 Second input list
 * @return List of unique elements present in both input lists
 * 
 * Example:
 * findUniqueElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> [4, 5]
 */
fun findUniqueElements(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val uniqueElements = mutableListOf<Int>()
    
    for (element in lst1) {
        if (element in lst2 && lst1.count { it == element } == lst2.count { it == element }) {
            uniqueElements.add(element)
        }
    }
    
    return uniqueElements
}