/**
 * Given a dictionary, find the key-value pairs with the largest absolute value.
 *
 * @param dictionary A dictionary containing integer keys and values.
 * @return A dictionary containing the key-value pairs with the largest absolute value.
 */
fun getLargestAbsValue(dictionary: Map<Int, Int>): Map<Int, Int> {

    val result = mutableMapOf<Int, Int>()
    var largestAbsValue = 0

    for ((key, value) in dictionary) {
        if (Math.abs(value) > largestAbsValue) {
            largestAbsValue = Math.abs(value)
            result.clear()
            result[key] = value
        } else if (Math.abs(value) == largestAbsValue) {
            result[key] = value
        }
    }

    return result
}
/**
 * Given a dictionary, find the key-value pairs with the largest absolute value.
 *
 * @param dictionary A dictionary containing integer keys and values.
 * @return A dictionary containing the key-value pairs with the largest absolute value.
 */
fun getLargestAbsValue(dictionary: Map<Int, Int>): Map<Int, Int> {
/**
 * Given a dictionary, find the key-value pairs with the largest absolute value.
 *
 * @param dictionary A dictionary containing integer keys and values.
 * @return A dictionary containing the key-value pairs with the largest absolute value.
 */
fun getLargestAbsValue(dictionary: Map<Int, Int>): Map<Int, Int> {

    val result = mutableMapOf<Int, Int>()
    var largestAbsValue = 0

    for ((key, value) in dictionary) {
        if (Math.abs(value) > largestAbsValue) {
            largestAbsValue = Math.abs(value)
            result.clear()
            result[key] = value
        } else if (Math.abs(value) == largestAbsValue) {
            result[key] = value
        }
    }

    return result
}