Bit Manipulation - Number of 1 Bits (Hamming Weight)
Given the following intermediate state of a bit counting function using Brian Kernighan's algorithm: after 2 iterations, n = 8 (binary 1000). How many set bits did the original input have at minimum?
