GE interview question

Code related to virtual functions and operator overloading.