Minimum Time to Collect All Apples in a Tree — CaffeCode