Cognizant interview question

A program about sorting in Java