Rockstar Games interview question

Number of 1 Bits leetcode problem