Pregunta de entrevista de LTM Limited

java coding question and oops concepts.