Find Min Diff Leetcode Javascript 30