Write a function that determines if a given number is a power of 2.
This function returns true if the given number is a power of 2, otherwise it returns false.
true
false
func IsPowerOf2(n uint) bool { }