Cognizant Interview Question

Write a sorting algorithm