Minimum Array End Leetcode Solution Github