/**
 * Given a list of elevations and a slope value, modify the elevations in the list
 * by adding the slope value to each elevation.
 *
 * @param elevations A list of elevations.
 * @param slope The slope value to be added to each elevation.
 * @return The modified list of elevations.
 *
 * Note:
 * - The resulting elevations should retain the same order as the original list.
 * - The original list is modified in-place.
 */
fun modifyElevations(elevations: MutableList<Double>, slope: Double): List<Double> {

    for (i in elevations.indices) {
        elevations[i] += slope
    }
    return elevations
}
/**
 * Given a list of elevations and a slope value, modify the elevations in the list
 * by adding the slope value to each elevation.
 *
 * @param elevations A list of elevations.
 * @param slope The slope value to be added to each elevation.
 * @return The modified list of elevations.
 *
 * Note:
 * - The resulting elevations should retain the same order as the original list.
 * - The original list is modified in-place.
 */
fun modifyElevations(elevations: MutableList<Double>, slope: Double): List<Double> {
/**
 * Given a list of elevations and a slope value, modify the elevations in the list
 * by adding the slope value to each elevation.
 *
 * @param elevations A list of elevations.
 * @param slope The slope value to be added to each elevation.
 * @return The modified list of elevations.
 *
 * Note:
 * - The resulting elevations should retain the same order as the original list.
 * - The original list is modified in-place.
 */
fun modifyElevations(elevations: MutableList<Double>, slope: Double): List<Double> {

    for (i in elevations.indices) {
        elevations[i] += slope
    }
    return elevations
}