Cognizant Interview Question

Sorting, searching, trees graphs and stuff