/**
 * Given a map "numbers" with string keys and integer values,
 * calculate the sum of the values that are greater than 10 and have a key starting with the letter 's'.
 *
 * Example:
 * numbers = mapOf("s1" to 15, "s2" to 7, "t3" to 34, "s4" to 20, "u5" to 4)
 * The sum should be 35 (15 + 20).
 *
 * Fill in the code below to solve the exercise.
 */
fun calculateSum(numbers: Map<String, Int>): Int {

    // Initialize a variable to store the sum
    var totalSum = 0

    // Iterate over each key-value pair in the map
    for ((key, value) in numbers) {
        // Check if the key starts with 's' and the value is greater than 10
        if (key.startsWith('s') && value > 10) {
            // Add the value to the sum
            totalSum += value
        }
    }

    return totalSum
}
/**
 * Given a map "numbers" with string keys and integer values,
 * calculate the sum of the values that are greater than 10 and have a key starting with the letter 's'.
 *
 * Example:
 * numbers = mapOf("s1" to 15, "s2" to 7, "t3" to 34, "s4" to 20, "u5" to 4)
 * The sum should be 35 (15 + 20).
 *
 * Fill in the code below to solve the exercise.
 */
fun calculateSum(numbers: Map<String, Int>): Int {
/**
 * Given a map "numbers" with string keys and integer values,
 * calculate the sum of the values that are greater than 10 and have a key starting with the letter 's'.
 *
 * Example:
 * numbers = mapOf("s1" to 15, "s2" to 7, "t3" to 34, "s4" to 20, "u5" to 4)
 * The sum should be 35 (15 + 20).
 *
 * Fill in the code below to solve the exercise.
 */
fun calculateSum(numbers: Map<String, Int>): Int {

    // Initialize a variable to store the sum
    var totalSum = 0

    // Iterate over each key-value pair in the map
    for ((key, value) in numbers) {
        // Check if the key starts with 's' and the value is greater than 10
        if (key.startsWith('s') && value > 10) {
            // Add the value to the sum
            totalSum += value
        }
    }

    return totalSum
}