Maximum Number of Integers to Choose From a Range I | Leetcode 2554