Caterpillar Interview Question

c,c++