Smallest Element In Array Leetcode