/**
 * This function takes in an array of integers and a number as input,
 * and returns a new array containing all the elements from the original array that are greater than the given number.
 *
 * @param arr A list of integers.
 * @param num An integer.
 * @return A list of integers containing values greater than the given number.
 */
fun findGreaterThan(arr: List<Int>, num: Int): List<Int> {

    val greaterThanArr = mutableListOf<Int>()
    for (element in arr) {
        if (element > num) {
            greaterThanArr.add(element)
        }
    }
    return greaterThanArr
}
/**
 * This function takes in an array of integers and a number as input,
 * and returns a new array containing all the elements from the original array that are greater than the given number.
 *
 * @param arr A list of integers.
 * @param num An integer.
 * @return A list of integers containing values greater than the given number.
 */
fun findGreaterThan(arr: List<Int>, num: Int): List<Int> {
/**
 * This function takes in an array of integers and a number as input,
 * and returns a new array containing all the elements from the original array that are greater than the given number.
 *
 * @param arr A list of integers.
 * @param num An integer.
 * @return A list of integers containing values greater than the given number.
 */
fun findGreaterThan(arr: List<Int>, num: Int): List<Int> {

    val greaterThanArr = mutableListOf<Int>()
    for (element in arr) {
        if (element > num) {
            greaterThanArr.add(element)
        }
    }
    return greaterThanArr
}