Non-Decreasing Array - Leetcode 665 - Python