Nokia Interview Question

all advanced questions regarding c++