JBLinks Infotech Interview Question

Question from data structure and oops concepts.