Minimum Array End Leetcode Problems Two