Minimum Cost to Cut a Stick — CaffeCode