part a of knapsack
fixed and ran part a
adding solution one