Employee Free Time , different than leet code question

Question:
Given a person's work hours and an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],…] (si < ei), print out the free time of this person. For example,
work hour: [0, 45]
meeting time: [3, 30],[5, 10],[15, 20]
free time: [0,3],[30,45]

this is variant of https://leetcode.com/problems/employee-free-time/
but here we need to find single person free time and we have work hour array .
what should be the approach ? can any one please share the thoughts or code ?

Comments (3)