/**
 * This function takes a list of exposure times and modifies a specific element at the given index.
 *
 * @param exposureTimes List of exposure times in seconds.
 * @param index Index of the element to be modified.
 * @param newExposure New exposure time to replace the old one.
 * @return Updated list of exposure times.
 */
fun updateExposure(exposureTimes: MutableList<Int>, index: Int, newExposure: Int): List<Int> {

    if (index >= 0 && index < exposureTimes.size) {
        exposureTimes[index] = newExposure
    }
    return exposureTimes
}
/**
 * This function takes a list of exposure times and modifies a specific element at the given index.
 *
 * @param exposureTimes List of exposure times in seconds.
 * @param index Index of the element to be modified.
 * @param newExposure New exposure time to replace the old one.
 * @return Updated list of exposure times.
 */
fun updateExposure(exposureTimes: MutableList<Int>, index: Int, newExposure: Int): List<Int> {
/**
 * This function takes a list of exposure times and modifies a specific element at the given index.
 *
 * @param exposureTimes List of exposure times in seconds.
 * @param index Index of the element to be modified.
 * @param newExposure New exposure time to replace the old one.
 * @return Updated list of exposure times.
 */
fun updateExposure(exposureTimes: MutableList<Int>, index: Int, newExposure: Int): List<Int> {

    if (index >= 0 && index < exposureTimes.size) {
        exposureTimes[index] = newExposure
    }
    return exposureTimes
}