Count the number of set bits (1s) in an unsigned long long integer.
Asked in the Technical Phone Screens (3 rounds) stage. This is a bit manipulation task in C++.
Implement count_set_bits(n), where n is an integer representing an unsigned 64-bit value. Return the number of bits equal to 1.
def count_set_bits(n):