[ruby_contest]#4 knapsack