/**
 * Given a list of scores, calculate the total score by applying various multipliers to the scores.
 *
 * @param scores List of scores (integers)
 * @return The total score calculated
 *
 * Example:
 * calculateTotalScore(listOf(10, 20, 30, 40)) // Output: 250
 */
fun calculateTotalScore(scores: List<Int>): Int {

    var totalScore = 0
    val multipliers = listOf(2, 3, 1, 4)

    // Combine for loop with zip to calculate total score
    for ((score, multiplier) in scores.zip(multipliers)) {
        totalScore += score * multiplier
    }

    return totalScore
}
/**
 * Given a list of scores, calculate the total score by applying various multipliers to the scores.
 *
 * @param scores List of scores (integers)
 * @return The total score calculated
 *
 * Example:
 * calculateTotalScore(listOf(10, 20, 30, 40)) // Output: 250
 */
fun calculateTotalScore(scores: List<Int>): Int {
/**
 * Given a list of scores, calculate the total score by applying various multipliers to the scores.
 *
 * @param scores List of scores (integers)
 * @return The total score calculated
 *
 * Example:
 * calculateTotalScore(listOf(10, 20, 30, 40)) // Output: 250
 */
fun calculateTotalScore(scores: List<Int>): Int {

    var totalScore = 0
    val multipliers = listOf(2, 3, 1, 4)

    // Combine for loop with zip to calculate total score
    for ((score, multiplier) in scores.zip(multipliers)) {
        totalScore += score * multiplier
    }

    return totalScore
}