How to check for overlapping intervals | Hacker News Reader