Minimum Array End Leetcode 7545479602