/**
 * In this exercise, you are given a map 'transactions' that represents the revenue
 * generated by an Accountant over a week. Each key in the map represents a day,
 * and the corresponding value represents the revenue generated on that day. You need to calculate
 * the total revenue generated over the week.
 *
 * Your task is to complete the 'getTotalRevenue' function that takes in the 'transactions'
 * map as a parameter and returns the total revenue generated over the week.
 *
 * Example:
 * getTotalRevenue(mapOf("Monday" to 100, "Tuesday" to 50, "Wednesday" to 75, "Thursday" to 90, "Friday" to 200))
 * Output: 515
 */
fun getTotalRevenue(transactions: Map<String, Int>): Int {

    var totalRevenue = 0

    for ((_, revenue) in transactions) {
        totalRevenue += revenue
    }

    return totalRevenue
}
/**
 * In this exercise, you are given a map 'transactions' that represents the revenue
 * generated by an Accountant over a week. Each key in the map represents a day,
 * and the corresponding value represents the revenue generated on that day. You need to calculate
 * the total revenue generated over the week.
 *
 * Your task is to complete the 'getTotalRevenue' function that takes in the 'transactions'
 * map as a parameter and returns the total revenue generated over the week.
 *
 * Example:
 * getTotalRevenue(mapOf("Monday" to 100, "Tuesday" to 50, "Wednesday" to 75, "Thursday" to 90, "Friday" to 200))
 * Output: 515
 */
fun getTotalRevenue(transactions: Map<String, Int>): Int {
/**
 * In this exercise, you are given a map 'transactions' that represents the revenue
 * generated by an Accountant over a week. Each key in the map represents a day,
 * and the corresponding value represents the revenue generated on that day. You need to calculate
 * the total revenue generated over the week.
 *
 * Your task is to complete the 'getTotalRevenue' function that takes in the 'transactions'
 * map as a parameter and returns the total revenue generated over the week.
 *
 * Example:
 * getTotalRevenue(mapOf("Monday" to 100, "Tuesday" to 50, "Wednesday" to 75, "Thursday" to 90, "Friday" to 200))
 * Output: 515
 */
fun getTotalRevenue(transactions: Map<String, Int>): Int {

    var totalRevenue = 0

    for ((_, revenue) in transactions) {
        totalRevenue += revenue
    }

    return totalRevenue
}