Navan Interview Question

Find the gap in some intervals