Given an array of integers, write a method to find indices m and n such that if you sorted elements m through n, the entire array would be sorted. Minimize n - m (that is, find the smallest such sequence).
O(n)
O(n)
Run make to build and run Swift files. Or you can run .playground file.