Caterpillar Interview Question

Mostly try to understand real case