Synopsys interview question

some c++ virtual hierarchy idea.