Block Interview Question

Aggregate query