NTT DATA interview question

c,c++