Minimum Array End Leetcode Premium