LeetCode Solution, Medium, 1029. Two City Scheduling