GE interview question

Write algorithm for sorting