Update Main.java

add another method to find coins with dynamic bag algorithm, but still timeout on two cases;