Q2. Fashion Promo Something
There is a scheme in a shop that if you buy a group of 3 dress , you will get the dress with the least price totally free, So the prices of N number of dresses were given , you have to find the maximum discount(least price) you can get. You are free to make group of 3 dresses as you like and you have to buy all the dresses.