Pregunta de entrevista de Razorpay

Give code for overlapping intervals.