Can anyone help me to solve this, as I'm finding difficult to solve it.
Raju sells Diwali sweets with three different combinations, D1, D2 and D3. There are total X,Y, and Z sweets with combinations, D1,D2, and D3 respectively. Each sweets combination has an integer value called deliciousness as follows: The deliciousness of the sweets with the D1 combination are D11,D12,D13,....,D1X. The deliciousness of the sweets with the D2 combination are D21,D22,D23,....,D2Y. The deliciousness of the sweets with the D3 combination are D31,D32,D33,....,D3Z. Sanju decides to buy K boxes containing three sweets, one from each of the combinations. The deliciousness of a box is the sum of the deliciousness of the sweets present inside it. There are X∗Y∗Z such ways to select a box. Print the maximum total sum of deliciousness that Sanju can get by buying K boxes from Raju. I have mentioned input and output specifications bellow