Pregunta de entrevista de Daedalean

C++ code to square numbers optimally