Minimum Array End Leetcode 754 Credit