Lower Bound Question Leetcode Javascript 30