Pregunta de entrevista de Motorola Solutions

Small coding question using C++