/**
 * Given a list of geographic points and a modifier, calculate the total distance between the points
 * after modifying each point with the modifier.
 *
 * @param points A list containing geographic points as pairs of integers. Each pair represents a point with
 *               its latitude and longitude.
 * @param modifier An integer value used to modify the latitude and longitude of each point.
 * @return An integer indicating the total distance between the modified points.
 *
 * Example:
 * calculateTotalDistance(listOf(Pair(10, 20), Pair(30, 40), Pair(50, 60)), 5) // Output: 60
 */
fun calculateTotalDistance(points: List<Pair<Int, Int>>, modifier: Int): Int {

    var totalDistance = 0

    for (point in points) {
        val modifiedLatitude = point.first + modifier
        val modifiedLongitude = point.second + modifier
        totalDistance += modifiedLatitude + modifiedLongitude
    }

    return totalDistance
}
/**
 * Given a list of geographic points and a modifier, calculate the total distance between the points
 * after modifying each point with the modifier.
 *
 * @param points A list containing geographic points as pairs of integers. Each pair represents a point with
 *               its latitude and longitude.
 * @param modifier An integer value used to modify the latitude and longitude of each point.
 * @return An integer indicating the total distance between the modified points.
 *
 * Example:
 * calculateTotalDistance(listOf(Pair(10, 20), Pair(30, 40), Pair(50, 60)), 5) // Output: 60
 */
fun calculateTotalDistance(points: List<Pair<Int, Int>>, modifier: Int): Int {
/**
 * Given a list of geographic points and a modifier, calculate the total distance between the points
 * after modifying each point with the modifier.
 *
 * @param points A list containing geographic points as pairs of integers. Each pair represents a point with
 *               its latitude and longitude.
 * @param modifier An integer value used to modify the latitude and longitude of each point.
 * @return An integer indicating the total distance between the modified points.
 *
 * Example:
 * calculateTotalDistance(listOf(Pair(10, 20), Pair(30, 40), Pair(50, 60)), 5) // Output: 60
 */
fun calculateTotalDistance(points: List<Pair<Int, Int>>, modifier: Int): Int {

    var totalDistance = 0

    for (point in points) {
        val modifiedLatitude = point.first + modifier
        val modifiedLongitude = point.second + modifier
        totalDistance += modifiedLatitude + modifiedLongitude
    }

    return totalDistance
}