2 problems solved using Greedy(Sauron) and Dynamic Programming(Matrix