Exponential Interview Question

JVM Internals, some algos