Caterpillar Interview Question

Very Easy But I dont Know why I didnt got selected