/**
 * This function takes a list of numbers and a tuple of indices as input.
 * It removes the elements from the list at the specified indices.
 * The function returns the modified list.
 *
 * @param numbers A list of numbers
 * @param indices A tuple of indices to be removed from the list
 * @return A list of numbers after removing elements at the specified indices
 */
fun removeDuplicates(numbers: MutableList<Int>, indices: List<Int>): List<Int> {

    // Remove duplicates from the indices list
    val uniqueIndices = indices.toSet()

    // Sort the unique indices in reverse order
    val sortedIndices = uniqueIndices.sortedDescending()

    // Remove elements from the list at the specified indices
    for (index in sortedIndices) {
        numbers.removeAt(index)
    }

    return numbers
}
/**
 * This function takes a list of numbers and a tuple of indices as input.
 * It removes the elements from the list at the specified indices.
 * The function returns the modified list.
 *
 * @param numbers A list of numbers
 * @param indices A tuple of indices to be removed from the list
 * @return A list of numbers after removing elements at the specified indices
 */
fun removeDuplicates(numbers: MutableList<Int>, indices: List<Int>): List<Int> {
/**
 * This function takes a list of numbers and a tuple of indices as input.
 * It removes the elements from the list at the specified indices.
 * The function returns the modified list.
 *
 * @param numbers A list of numbers
 * @param indices A tuple of indices to be removed from the list
 * @return A list of numbers after removing elements at the specified indices
 */
fun removeDuplicates(numbers: MutableList<Int>, indices: List<Int>): List<Int> {

    // Remove duplicates from the indices list
    val uniqueIndices = indices.toSet()

    // Sort the unique indices in reverse order
    val sortedIndices = uniqueIndices.sortedDescending()

    // Remove elements from the list at the specified indices
    for (index in sortedIndices) {
        numbers.removeAt(index)
    }

    return numbers
}