Cognizant interview question

Sorting and searching algorithms