Math.clz32() returns the number of leading zero bits in the 32-bit binary representation of a number. Let's try to implement it by ourselves.