Minimum Array End Leetcode 754