eDataWorld Interview Question

implement one ordering algorithm