This will print all overlapping ranges instead of only fully contained ranges.
I'm not sure why this is so much to write. It feels like there should be a more generic way to check this instead of duplicating those lines, but maybe it's not worth it for 2 ranges ...