Lower Bound Question Leetcode Javascript Question