A program to find the processes which utilize the memory optimally, given the list of the processes with their memory usage and the total memory available.
Example:- Total memory :- 10
Processes:- 1 2 3 4 Memory usage:- 2 3 4 5
Answer should be processes {1,2,4} with memory consumption {2,3,5} as 2+3+5=10