Amazon interview question

Granularity question