C5i interview question

Implement any sorting algorithm take input and print output