Merge overlapping weekly time intervals | Nextdoor Interview Question