https://9dok.net/document/yj7vl2mk-question-write-following-subsets-r-union-intervals-r.html