Leetcode Smallest Value Array In Math