GlobalLogic interview question

Virtual method