Pregunta de entrevista de Netcracker Technology

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