Beginner Level
Implement the meetingOverlapCheck method that checks whether two time intervals overlap.
The input contains two meeting intervals: start1, end1, start2, and end2. Your task is to check whether the two meetings overlap.
Two meetings overlap if they share any common time. If one meeting ends exactly when the other starts, they do not overlap.
Use the standard interval overlap condition.
For two intervals to overlap, the first meeting must start before the second meeting ends, and the second meeting must start before the first meeting ends.
If either meeting ends before or exactly when the other begins, there is no overlap.
Pseudocode:
function meetingOverlapCheck(start1, end1, start2, end2):
if start1 < end2 and start2 < end1:
return true
return false