Smallest Difference Leetcode Problem