/**
 * This function takes a dictionary with sales data as input and returns the name of the top-selling product.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getTopSellingProduct(dictionary: Map<String, Int>): String {

    var topSellingProduct = ""
    var maxSales = 0

    for ((product, sales) in dictionary) {
        if (sales > maxSales) {
            topSellingProduct = product
            maxSales = sales
        }
    }

    return topSellingProduct
}
/**
 * This function takes a dictionary with sales data as input and returns the name of the top-selling product.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getTopSellingProduct(dictionary: Map<String, Int>): String {
/**
 * This function takes a dictionary with sales data as input and returns the name of the top-selling product.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getTopSellingProduct(dictionary: Map<String, Int>): String {

    var topSellingProduct = ""
    var maxSales = 0

    for ((product, sales) in dictionary) {
        if (sales > maxSales) {
            topSellingProduct = product
            maxSales = sales
        }
    }

    return topSellingProduct
}