Minimum Array End Leetcode Solutions With Explanation