Trandent API
POST
COMMUNITY
String binary = Integer.toBinaryString(N);String trim = binary.substring(0, binary.lastIndexOf("1") + 1);return Arrays.stream(trim.split("1")).mapToInt(a -> a.length()).max().orElse(0);