Lower Bound Question Leetcode Javascript Problems