Leetcode 2589. Minimum Time to Complete All Tasks | Hello Interview