/**
 * Given a list of elements and an element to be modified, this function modifies the element at the given index using negative indexing.
 *
 * @param geographerList List of elements.
 * @param element The element to be modified.
 * @param index The index of the element to be modified (using negative indexing).
 * @return The modified list.
 */
fun modifyGeographerList(geographerList: MutableList<Any>, element: Any, index: Int): List<Any> {

    // Modify the element at the given index using negative indexing
    geographerList[index] = element
    return geographerList
}
/**
 * Given a list of elements and an element to be modified, this function modifies the element at the given index using negative indexing.
 *
 * @param geographerList List of elements.
 * @param element The element to be modified.
 * @param index The index of the element to be modified (using negative indexing).
 * @return The modified list.
 */
fun modifyGeographerList(geographerList: MutableList<Any>, element: Any, index: Int): List<Any> {
/**
 * Given a list of elements and an element to be modified, this function modifies the element at the given index using negative indexing.
 *
 * @param geographerList List of elements.
 * @param element The element to be modified.
 * @param index The index of the element to be modified (using negative indexing).
 * @return The modified list.
 */
fun modifyGeographerList(geographerList: MutableList<Any>, element: Any, index: Int): List<Any> {

    // Modify the element at the given index using negative indexing
    geographerList[index] = element
    return geographerList
}