Question: Sum of minimum number of elements equal to or greater than K(you can use the elements as many times as they are given in array).
Input:first line contains n and k,second line contains n number of elements. 6 15 2 4 5 6 7 8
ans : 2
explanation : 7+8=15 i.e minimum no of elements. also 4+5+6 =15 but minimum no is 2 (7,8)
help me with the code, I am not able to get correct ans