JBLinks Infotech interview question

Question from data structure and oops concepts.