Pregunta de entrevista de SAP

Valid perfect square, and street lights problem (simulation)