Minimum Array End Leetcode Solutions C