StalinSort
Stalin Sort.
Removes any element that is out of order — rather than sorting them, it simply "purges" them. The result is a sorted array, but potentially shorter.
Time complexity: O(n) Space complexity: O(n) for the filtered result
WARNING: Destructive — elements that break ordering are permanently removed.