Leetcode Smallest Value Array Interview Question