/**
 * Given a list of account balances and a threshold, return a list of account balances that are higher than the threshold.
 *
 * @param accounts A list of account balances.
 * @param threshold The minimum account balance to filter.
 * @return A list of account balances higher than the threshold.
 */
fun filterHighEarning(accounts: List<Double>, threshold: Double): List<Double> {

    // Use filter function to filter the account balances greater than the threshold
    return accounts.filter { it > threshold }
}
/**
 * Given a list of account balances and a threshold, return a list of account balances that are higher than the threshold.
 *
 * @param accounts A list of account balances.
 * @param threshold The minimum account balance to filter.
 * @return A list of account balances higher than the threshold.
 */
fun filterHighEarning(accounts: List<Double>, threshold: Double): List<Double> {
/**
 * Given a list of account balances and a threshold, return a list of account balances that are higher than the threshold.
 *
 * @param accounts A list of account balances.
 * @param threshold The minimum account balance to filter.
 * @return A list of account balances higher than the threshold.
 */
fun filterHighEarning(accounts: List<Double>, threshold: Double): List<Double> {

    // Use filter function to filter the account balances greater than the threshold
    return accounts.filter { it > threshold }
}