Lower Bound Questions Leetcode Javascript