/**
 * This function takes in two lists of integers and returns a new list
 * containing the common elements that are greater than the smallest element in the first list.
 *
 * @param inputList1 The first list of integers.
 * @param inputList2 The second list of integers.
 * @return A new list containing the common elements greater than the smallest element in inputList1.
 */
fun findCommonGreater(inputList1: List<Int>, inputList2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()
    val smallest = inputList1.minOrNull() ?: return commonElements
    
    for (num in inputList1) {
        if (num > smallest && num in inputList2) {
            commonElements.add(num)
        }
    }
    
    return commonElements
}
/**
 * This function takes in two lists of integers and returns a new list
 * containing the common elements that are greater than the smallest element in the first list.
 *
 * @param inputList1 The first list of integers.
 * @param inputList2 The second list of integers.
 * @return A new list containing the common elements greater than the smallest element in inputList1.
 */
fun findCommonGreater(inputList1: List<Int>, inputList2: List<Int>): List<Int> {
/**
 * This function takes in two lists of integers and returns a new list
 * containing the common elements that are greater than the smallest element in the first list.
 *
 * @param inputList1 The first list of integers.
 * @param inputList2 The second list of integers.
 * @return A new list containing the common elements greater than the smallest element in inputList1.
 */
fun findCommonGreater(inputList1: List<Int>, inputList2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()
    val smallest = inputList1.minOrNull() ?: return commonElements
    
    for (num in inputList1) {
        if (num > smallest && num in inputList2) {
            commonElements.add(num)
        }
    }
    
    return commonElements
}