Cepton Interview Question

they asked to implement a disjointed-intervals program