Maximum Element Of Array Leetcode Problems Python