Corvil Interview Question

java classic question