Minimum Array End Leetcode Solutions