Minimum Time Visiting All Points Leetcode Solution