Caterpillar interview question

Technical Question