Pergunta de entrevista da empresa Locatee

On the technical interview for the front end there was a question to write a function to determine if two intervals suplied were overlaping.