Google interview question

Given 2 intervals, get the overlapping between 2 intervals