Tecsys interview question

Write a program to sort the no.