McGraw Hill Interview Question

Very Basic Java