Brainlab interview question

Basic C++