Minimum Array End Leetcode 7594srs