Caterpillar Interview Question

About Heat Diagram