/**
 * Given a map containing key-value pairs as integers,
 * return the sum of all the values in the map multiplied by their corresponding keys.
 *
 * @param inputMap A map containing key-value pairs as integers.
 * @return The sum of all the values in the map multiplied by their corresponding keys.
 */
fun getMapResult(inputMap: Map<Int, Int>): Int {

    var result = 0
    for ((key, value) in inputMap) {
        result += key * value
    }
    return result
}
/**
 * Given a map containing key-value pairs as integers,
 * return the sum of all the values in the map multiplied by their corresponding keys.
 *
 * @param inputMap A map containing key-value pairs as integers.
 * @return The sum of all the values in the map multiplied by their corresponding keys.
 */
fun getMapResult(inputMap: Map<Int, Int>): Int {
/**
 * Given a map containing key-value pairs as integers,
 * return the sum of all the values in the map multiplied by their corresponding keys.
 *
 * @param inputMap A map containing key-value pairs as integers.
 * @return The sum of all the values in the map multiplied by their corresponding keys.
 */
fun getMapResult(inputMap: Map<Int, Int>): Int {

    var result = 0
    for ((key, value) in inputMap) {
        result += key * value
    }
    return result
}