Marlabs Interview Question

Basic Java and OOPs questions