Cyient Interview Question

Sorting and searching programs in any language.