Continental Interview Question

java basics like oops concepts