Write a static method lg() that takes an int value N as argument and returns the largest int not larger than the base-2 logarithm of N. Do not use Math.
Write a static method lg() that takes an int value N as argument and returnsthe largest int not larger than the base-2 logarithm of N. Do not use Math.