/**
 * This function calculates the total time required by a photographer 
 * to take multiple photos with varying exposure times.
 *
 * @param numPhotos the number of photos to be taken
 * @param numRuns the number of runs to be performed
 * @param exposureTimes a list of exposure times for each photo
 * @return the total time required to take all the photos
 */
fun calculateTotalTime(numPhotos: Int, numRuns: Int, exposureTimes: List<Float>): Float {

    var totalTime = 0.0f  // Initialize total time

    for (run in 0 until numRuns) {
        for (photo in 0 until numPhotos) {
            // Perform the necessary calculations here and update total time
            totalTime += exposureTimes[photo] * (run % (photo + 1))
        }
    }

    return totalTime
}
/**
 * This function calculates the total time required by a photographer 
 * to take multiple photos with varying exposure times.
 *
 * @param numPhotos the number of photos to be taken
 * @param numRuns the number of runs to be performed
 * @param exposureTimes a list of exposure times for each photo
 * @return the total time required to take all the photos
 */
fun calculateTotalTime(numPhotos: Int, numRuns: Int, exposureTimes: List<Float>): Float {
/**
 * This function calculates the total time required by a photographer 
 * to take multiple photos with varying exposure times.
 *
 * @param numPhotos the number of photos to be taken
 * @param numRuns the number of runs to be performed
 * @param exposureTimes a list of exposure times for each photo
 * @return the total time required to take all the photos
 */
fun calculateTotalTime(numPhotos: Int, numRuns: Int, exposureTimes: List<Float>): Float {

    var totalTime = 0.0f  // Initialize total time

    for (run in 0 until numRuns) {
        for (photo in 0 until numPhotos) {
            // Perform the necessary calculations here and update total time
            totalTime += exposureTimes[photo] * (run % (photo + 1))
        }
    }

    return totalTime
}