3i Infotech interview question

Write a program for sorting