Minimum Time for K Connected Components — CaffeCode