Pregunta de entrevista de Tata Consultancy Services

oops questions friend function inheritance coding