/**
 * Given a dataset in the form of a list of pairs, extract and return only the data points that meet a specific condition.
 *
 * @param dataset A list of pairs containing data points.
 * @return A list of filtered data points that meet the specified condition.
 *
 * Example:
 * get_data_points(listOf(Pair(1, 10), Pair(2, 20), Pair(3, 30), Pair(4, 40), Pair(5, 50)), 25)
 * Output: [(3, 30), (4, 40), (5, 50)]
 */
fun getDataPoints(dataset: List<Pair<Int, Int>>, threshold: Int): List<Pair<Int, Int>> {

    // Use filter to extract data points that meet the condition
    return dataset.filter { it.second > threshold }
}
/**
 * Given a dataset in the form of a list of pairs, extract and return only the data points that meet a specific condition.
 *
 * @param dataset A list of pairs containing data points.
 * @return A list of filtered data points that meet the specified condition.
 *
 * Example:
 * get_data_points(listOf(Pair(1, 10), Pair(2, 20), Pair(3, 30), Pair(4, 40), Pair(5, 50)), 25)
 * Output: [(3, 30), (4, 40), (5, 50)]
 */
fun getDataPoints(dataset: List<Pair<Int, Int>>, threshold: Int): List<Pair<Int, Int>> {
/**
 * Given a dataset in the form of a list of pairs, extract and return only the data points that meet a specific condition.
 *
 * @param dataset A list of pairs containing data points.
 * @return A list of filtered data points that meet the specified condition.
 *
 * Example:
 * get_data_points(listOf(Pair(1, 10), Pair(2, 20), Pair(3, 30), Pair(4, 40), Pair(5, 50)), 25)
 * Output: [(3, 30), (4, 40), (5, 50)]
 */
fun getDataPoints(dataset: List<Pair<Int, Int>>, threshold: Int): List<Pair<Int, Int>> {

    // Use filter to extract data points that meet the condition
    return dataset.filter { it.second > threshold }
}