/**
 * This exercise focuses on creating a tuple and deleting elements from it.
 *
 * @param firefighterData List of firefighter information.
 * @param deleteIndices List of indices to be deleted from the tuple.
 * @return Tuple after deleting specified indices.
 */
fun createAndDeleteTuple(firefighterData: List<String>, deleteIndices: List<Int>): List<String> {

    // Create a tuple from the given list of firefighter data
    val firefighterTuple = firefighterData.toTypedArray()

    // Delete the elements at indices specified in deleteIndices from the tuple
    val indicesToDelete = deleteIndices.sortedDescending()
    val updatedTuple = firefighterTuple.toMutableList()
    for (index in indicesToDelete) {
        updatedTuple.removeAt(index)
    }

    // Return the updated tuple
    return updatedTuple
}
/**
 * This exercise focuses on creating a tuple and deleting elements from it.
 *
 * @param firefighterData List of firefighter information.
 * @param deleteIndices List of indices to be deleted from the tuple.
 * @return Tuple after deleting specified indices.
 */
fun createAndDeleteTuple(firefighterData: List<String>, deleteIndices: List<Int>): List<String> {
/**
 * This exercise focuses on creating a tuple and deleting elements from it.
 *
 * @param firefighterData List of firefighter information.
 * @param deleteIndices List of indices to be deleted from the tuple.
 * @return Tuple after deleting specified indices.
 */
fun createAndDeleteTuple(firefighterData: List<String>, deleteIndices: List<Int>): List<String> {

    // Create a tuple from the given list of firefighter data
    val firefighterTuple = firefighterData.toTypedArray()

    // Delete the elements at indices specified in deleteIndices from the tuple
    val indicesToDelete = deleteIndices.sortedDescending()
    val updatedTuple = firefighterTuple.toMutableList()
    for (index in indicesToDelete) {
        updatedTuple.removeAt(index)
    }

    // Return the updated tuple
    return updatedTuple
}