/**
 * You have been assigned the task to change the color of a specific element in the uniform of a police officer.
 * The police_officer is represented by a list where each element represents a part of the uniform (e.g., shirt, pants, hat, shoes).
 *
 * @param policeOfficer A list representing the police officer's uniform.
 * @param index The index of the element to be changed.
 * @param newColor The new color that should replace the existing element.
 * @return The updated list representing the modified uniform.
 *
 * Task:
 * Your task is to write the code to change the element at the given index of the police officer's uniform list
 * with the new color provided. Make sure the function returns the modified list.
 *
 * Example:
 * changeUniformColor(listOf("blue", "black", "white"), 1, "green")
 * Output: ["blue", "green", "white"]
 */
fun changeUniformColor(policeOfficer: MutableList<String>, index: Int, newColor: String): List<String> {

    policeOfficer[index] = newColor
    return policeOfficer
}
/**
 * You have been assigned the task to change the color of a specific element in the uniform of a police officer.
 * The police_officer is represented by a list where each element represents a part of the uniform (e.g., shirt, pants, hat, shoes).
 *
 * @param policeOfficer A list representing the police officer's uniform.
 * @param index The index of the element to be changed.
 * @param newColor The new color that should replace the existing element.
 * @return The updated list representing the modified uniform.
 *
 * Task:
 * Your task is to write the code to change the element at the given index of the police officer's uniform list
 * with the new color provided. Make sure the function returns the modified list.
 *
 * Example:
 * changeUniformColor(listOf("blue", "black", "white"), 1, "green")
 * Output: ["blue", "green", "white"]
 */
fun changeUniformColor(policeOfficer: MutableList<String>, index: Int, newColor: String): List<String> {
/**
 * You have been assigned the task to change the color of a specific element in the uniform of a police officer.
 * The police_officer is represented by a list where each element represents a part of the uniform (e.g., shirt, pants, hat, shoes).
 *
 * @param policeOfficer A list representing the police officer's uniform.
 * @param index The index of the element to be changed.
 * @param newColor The new color that should replace the existing element.
 * @return The updated list representing the modified uniform.
 *
 * Task:
 * Your task is to write the code to change the element at the given index of the police officer's uniform list
 * with the new color provided. Make sure the function returns the modified list.
 *
 * Example:
 * changeUniformColor(listOf("blue", "black", "white"), 1, "green")
 * Output: ["blue", "green", "white"]
 */
fun changeUniformColor(policeOfficer: MutableList<String>, index: Int, newColor: String): List<String> {

    policeOfficer[index] = newColor
    return policeOfficer
}