I have an unsorted array and I am looking for an algorithm to extract a part / slice of that array when it would be sorted.
Example:
unsorted array 2 | 3 |