/**
 * This function takes a list of elements and appends each element to the given archaeologistList.
 * It then modifies the elements of the archaeologistList by adding the index of each element to itself.
 *
 * @param archaeologistList The original list to be modified.
 * @param elements The list of elements to be appended.
 * @return The modified archaeologistList.
 */
fun modifyArchaeologistList(archaeologistList: MutableList<Int>, elements: List<Int>): MutableList<Int> {

    elements.forEach { element ->
        archaeologistList.add(element)
    }

    for (i in archaeologistList.indices) {
        archaeologistList[i] += i
    }

    return archaeologistList
}
/**
 * This function takes a list of elements and appends each element to the given archaeologistList.
 * It then modifies the elements of the archaeologistList by adding the index of each element to itself.
 *
 * @param archaeologistList The original list to be modified.
 * @param elements The list of elements to be appended.
 * @return The modified archaeologistList.
 */
fun modifyArchaeologistList(archaeologistList: MutableList<Int>, elements: List<Int>): MutableList<Int> {
/**
 * This function takes a list of elements and appends each element to the given archaeologistList.
 * It then modifies the elements of the archaeologistList by adding the index of each element to itself.
 *
 * @param archaeologistList The original list to be modified.
 * @param elements The list of elements to be appended.
 * @return The modified archaeologistList.
 */
fun modifyArchaeologistList(archaeologistList: MutableList<Int>, elements: List<Int>): MutableList<Int> {

    elements.forEach { element ->
        archaeologistList.add(element)
    }

    for (i in archaeologistList.indices) {
        archaeologistList[i] += i
    }

    return archaeologistList
}