Exponential interview question

JVM Internals, some algos