/**
 * This function takes a list of geographic tuples and modifies them based on the given conditions.
 *
 * @param tuples A list of tuples representing geographical data.
 * @return A list of modified tuples after applying the given conditions.
 */
fun modifyGeographicTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    val modifiedTuples = mutableListOf<Pair<Int, Int>>()
    for (tup in tuples) {
        if (tup.first % 2 == 0) {  // If the latitude is even
            val lon = tup.second * 2  // Double the longitude
            modifiedTuples.add(Pair(tup.first, lon))
        } else {  // If the latitude is odd
            val lat = tup.first + 1  // Increment the latitude by 1
            modifiedTuples.add(Pair(lat, tup.second))
        }
    }
    return modifiedTuples
}
/**
 * This function takes a list of geographic tuples and modifies them based on the given conditions.
 *
 * @param tuples A list of tuples representing geographical data.
 * @return A list of modified tuples after applying the given conditions.
 */
fun modifyGeographicTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {
/**
 * This function takes a list of geographic tuples and modifies them based on the given conditions.
 *
 * @param tuples A list of tuples representing geographical data.
 * @return A list of modified tuples after applying the given conditions.
 */
fun modifyGeographicTuples(tuples: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    val modifiedTuples = mutableListOf<Pair<Int, Int>>()
    for (tup in tuples) {
        if (tup.first % 2 == 0) {  // If the latitude is even
            val lon = tup.second * 2  // Double the longitude
            modifiedTuples.add(Pair(tup.first, lon))
        } else {  // If the latitude is odd
            val lat = tup.first + 1  // Increment the latitude by 1
            modifiedTuples.add(Pair(lat, tup.second))
        }
    }
    return modifiedTuples
}