Tech Mahindra Interview Question

Write a pseudo algorithm to solve the knapsack problem.