Amazon Interview Question

Granularity question