Minimum Array End Leetcode 15086