/**
 * This function takes in sales data, which is a list of tuples where each tuple represents
 * the sales for a particular product. Each tuple contains the product name as the first element
 * and the sales for each month of the year as the remaining elements. The function should update
 * the sales data by multiplying each sales value by 1.1, representing a 10% increase. Finally,
 * it should return a new list of tuples with the updated sales data.
 *
 * @param salesData A list of tuples representing sales data
 * @return A new list of tuples with updated sales data
 */
fun createEconomistReport(salesData: List<Pair<String, List<Double>>>) : List<Pair<String, List<Double>>> {

    val updatedSalesData = mutableListOf<Pair<String, List<Double>>>()
    var index = 0

    while (index < salesData.size) {
        val product = salesData[index].first
        val sales = salesData[index].second.toMutableList()
        val updatedSales = mutableListOf<Double>()
        var monthIndex = 0

        while (monthIndex < sales.size) {
            updatedSales.add(sales[monthIndex] * 1.1)
            monthIndex++
        }

        updatedSalesData.add(Pair(product, updatedSales))
        index++
    }

    return updatedSalesData
}
/**
 * This function takes in sales data, which is a list of tuples where each tuple represents
 * the sales for a particular product. Each tuple contains the product name as the first element
 * and the sales for each month of the year as the remaining elements. The function should update
 * the sales data by multiplying each sales value by 1.1, representing a 10% increase. Finally,
 * it should return a new list of tuples with the updated sales data.
 *
 * @param salesData A list of tuples representing sales data
 * @return A new list of tuples with updated sales data
 */
fun createEconomistReport(salesData: List<Pair<String, List<Double>>>) : List<Pair<String, List<Double>>> {
/**
 * This function takes in sales data, which is a list of tuples where each tuple represents
 * the sales for a particular product. Each tuple contains the product name as the first element
 * and the sales for each month of the year as the remaining elements. The function should update
 * the sales data by multiplying each sales value by 1.1, representing a 10% increase. Finally,
 * it should return a new list of tuples with the updated sales data.
 *
 * @param salesData A list of tuples representing sales data
 * @return A new list of tuples with updated sales data
 */
fun createEconomistReport(salesData: List<Pair<String, List<Double>>>) : List<Pair<String, List<Double>>> {

    val updatedSalesData = mutableListOf<Pair<String, List<Double>>>()
    var index = 0

    while (index < salesData.size) {
        val product = salesData[index].first
        val sales = salesData[index].second.toMutableList()
        val updatedSales = mutableListOf<Double>()
        var monthIndex = 0

        while (monthIndex < sales.size) {
            updatedSales.add(sales[monthIndex] * 1.1)
            monthIndex++
        }

        updatedSalesData.add(Pair(product, updatedSales))
        index++
    }

    return updatedSalesData
}