Leetcode Smallest Value Array Python Example