/**
 * This function takes a name and a score and calculates the total score.
 *
 * @param name A string representing the name of the athlete.
 * @param score An integer representing the score of the athlete.
 * @return totalScore An integer representing the total score obtained.
 */
fun calculateScore(name: String, score: Int): Int {

    var totalScore = 0

    for (char in name) {
        totalScore += char.toInt() * score
    }

    return totalScore
}
/**
 * This function takes a name and a score and calculates the total score.
 *
 * @param name A string representing the name of the athlete.
 * @param score An integer representing the score of the athlete.
 * @return totalScore An integer representing the total score obtained.
 */
fun calculateScore(name: String, score: Int): Int {
/**
 * This function takes a name and a score and calculates the total score.
 *
 * @param name A string representing the name of the athlete.
 * @param score An integer representing the score of the athlete.
 * @return totalScore An integer representing the total score obtained.
 */
fun calculateScore(name: String, score: Int): Int {

    var totalScore = 0

    for (char in name) {
        totalScore += char.toInt() * score
    }

    return totalScore
}