Minimum Array End Leetcode Solutions Two