Pregunta de entrevista de Infosys

Java, oops concepts. Couple of DSA coding questions