Garmin interview question

Analysis of a C++ function with pointers