math's submission of Knapsack Problem | CodeChef