eDataWorld interview question

implement one ordering algorithm