Amazon interview question

c++ pointer based questions