Pregunta de entrevista de Google

Given two intervals, return true/false for some condition