Pergunta de entrevista da empresa Tech Mahindra

Write a pseudo algorithm to solve the knapsack problem.