Given two list of unsorted intervals V1 and V2 write 2 functions 1. OR and 2. And

OR Function : Input V1 = (2,4) (6,8) (1,3) V2 = (7,9) (2,5)

output = (1,5) (6,9)

And function : This will be intersection function and will return intersection of the lists