Company: Flipkart_13july
Difficulty: medium
Maximize Candies Delivered Problem Description Avish has a factory which produces N different varieties of candy. Candies are made in batches (one batch has one candy variety only), and depending on the variety, different quantities of candies are produced per batch. For instance, a chocolate candy batch may output 5 candies while a vanilla candy batch may output 8 candies. Ritish, a big merchant wanted to sample Avish's candies. He requested Avish to send him as many total candies as possible; however, there should be at least two varieties of candy, and the quantity of each variety of candy must be the same (say k). Avish makes a plan to produce a fresh batch of each candy variety, pack the output into boxes containing k candies each, and send one box of each variety to Ritish. However, he also wants to avoid wastage and therefore decides not to send those varieties that would have leftover candies after a batch was packed into boxes of k quantity. Write a program to help Avish selec