Minimum Array End Leetcode 15085