Lower Bound Questions Leetcode Javascript Question