C++ Program to demonstrate example of Friend Functions