Cognizant interview question

Sorting, Searching,