GlobalLogic interview question

Friend function, polymorphism, pillar of oops