Amazon Interview Question

I remember I was asked an intervals question