/**
 * Given a list of products and their respective discounts, apply the discounts to the products.
 *
 * @param products A list of strings representing the products.
 * @param discounts A list of integers representing the discounts corresponding to each product.
 * @return A list of strings representing the products with the discounts applied.
 *
 * Example:
 * applyDiscountsToProducts(listOf("Product A", "Product B", "Product C"), listOf(10, 20, 30))
 * Output: ["Product A - 10% off", "Product B - 20% off", "Product C - 30% off"]
 */
fun applyDiscountsToProducts(products: List<String>, discounts: List<Int>): List<String> {

    return products.zip(discounts).map { (product, discount) -> "$product - $discount% off" }
}
/**
 * Given a list of products and their respective discounts, apply the discounts to the products.
 *
 * @param products A list of strings representing the products.
 * @param discounts A list of integers representing the discounts corresponding to each product.
 * @return A list of strings representing the products with the discounts applied.
 *
 * Example:
 * applyDiscountsToProducts(listOf("Product A", "Product B", "Product C"), listOf(10, 20, 30))
 * Output: ["Product A - 10% off", "Product B - 20% off", "Product C - 30% off"]
 */
fun applyDiscountsToProducts(products: List<String>, discounts: List<Int>): List<String> {
/**
 * Given a list of products and their respective discounts, apply the discounts to the products.
 *
 * @param products A list of strings representing the products.
 * @param discounts A list of integers representing the discounts corresponding to each product.
 * @return A list of strings representing the products with the discounts applied.
 *
 * Example:
 * applyDiscountsToProducts(listOf("Product A", "Product B", "Product C"), listOf(10, 20, 30))
 * Output: ["Product A - 10% off", "Product B - 20% off", "Product C - 30% off"]
 */
fun applyDiscountsToProducts(products: List<String>, discounts: List<Int>): List<String> {

    return products.zip(discounts).map { (product, discount) -> "$product - $discount% off" }
}