using System.Collections.Generic;
public class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
public string Category { get; set; }
}
public class Program
public static void Main()
List<Product> products = new List<Product>();
// You have a large dataset represented as a list of Product objects, where each product has properties like Name, Price, and Category.
// Your task is to find the cheapest product in each category, and print the its category, name and price.