Pergunta de entrevista da empresa Netcracker Technology

c++ oops concepts, gdb debugging, predict the output