Power of Two with Bitwise

Efficiently detect powers of two using bitwise operations in Kotlin with a simple AND trick.