Qualcomm interview question

Nothing Unexpected, basic c/c++ problem involving pointer