Category: Bit Manipulation
Difficulty: beginner
Description: Brian Kernighan's algorithm
Time Complexity: O(log n)
Space Complexity: O(1)