AIS Interview Question

based on java oops Programming