Minimum Array End | Leetcode 3133