Pregunta de entrevista de Headlands Technologies

Solve this C++ question in under 2 hours