/**
 * Given a list representing a police officer's record of criminals, this function should update the information
 * of a specific criminal at the provided index with the new information provided.
 *
 * @param record The police officer's record of criminals.
 * @param index The index of the criminal whose information needs to be updated.
 * @param newInformation The new information to replace the existing information of the criminal.
 * @return The updated police officer's record of criminals.
 *
 * Example:
 * val record = mutableListOf("John Doe", "Jane Smith", "Mark Johnson")
 * updateCriminalRecord(record, 1, "Alice Thompson")
 * // Output: ['John Doe', 'Alice Thompson', 'Mark Johnson']
 */
fun updateCriminalRecord(record: MutableList<String>, index: Int, newInformation: String): MutableList<String> {

    record[index] = newInformation
    return record
}
/**
 * Given a list representing a police officer's record of criminals, this function should update the information
 * of a specific criminal at the provided index with the new information provided.
 *
 * @param record The police officer's record of criminals.
 * @param index The index of the criminal whose information needs to be updated.
 * @param newInformation The new information to replace the existing information of the criminal.
 * @return The updated police officer's record of criminals.
 *
 * Example:
 * val record = mutableListOf("John Doe", "Jane Smith", "Mark Johnson")
 * updateCriminalRecord(record, 1, "Alice Thompson")
 * // Output: ['John Doe', 'Alice Thompson', 'Mark Johnson']
 */
fun updateCriminalRecord(record: MutableList<String>, index: Int, newInformation: String): MutableList<String> {
/**
 * Given a list representing a police officer's record of criminals, this function should update the information
 * of a specific criminal at the provided index with the new information provided.
 *
 * @param record The police officer's record of criminals.
 * @param index The index of the criminal whose information needs to be updated.
 * @param newInformation The new information to replace the existing information of the criminal.
 * @return The updated police officer's record of criminals.
 *
 * Example:
 * val record = mutableListOf("John Doe", "Jane Smith", "Mark Johnson")
 * updateCriminalRecord(record, 1, "Alice Thompson")
 * // Output: ['John Doe', 'Alice Thompson', 'Mark Johnson']
 */
fun updateCriminalRecord(record: MutableList<String>, index: Int, newInformation: String): MutableList<String> {

    record[index] = newInformation
    return record
}