/**
 * This function takes in a list of scores and a factor, and returns the sum of the scores multiplied by the factor.
 */
fun athleteCalculateScore(scores: List<Int>, factor: Int): Int {

    var scoreSum = 0
    for (score in scores) {
        scoreSum += score
    }
    return scoreSum * factor
}
/**
 * This function takes in a list of scores and a factor, and returns the sum of the scores multiplied by the factor.
 */
fun athleteCalculateScore(scores: List<Int>, factor: Int): Int {
/**
 * This function takes in a list of scores and a factor, and returns the sum of the scores multiplied by the factor.
 */
fun athleteCalculateScore(scores: List<Int>, factor: Int): Int {

    var scoreSum = 0
    for (score in scores) {
        scoreSum += score
    }
    return scoreSum * factor
}