Maximum Value of K Coins From Piles — CaffeCode