Infosys Interview Question

0/1 Knapsack Problem, Trees, Graph