Minimum Time to Reach Destination in Directed Graph — CaffeCode