Pregunta de entrevista de Fidelity Investments

Code isSquare(). Asked some SQL questions