Given a positive integer n, return the total number of set bits across all integers from 1 to n inclusive.
Input: A JSON object {"n": <positive integer>}.
Output: Return the total count of 1-bits in 1, 2, ..., n.
Input: {"n":6}
Output: 9
Explanation: The set-bit counts of 1..6 sum to 9.Input: {"n":1}
Output: 1
Explanation: Only the number 1 with one set bit -> 1.1 <= n <= 10^12