fashion show solved(simple sorting..O(nlogn))