Minimum Array End Leetcode 75 Sort