Pergunta de entrevista da empresa Tata Consultancy Services

Explain friend function with an example?