Pregunta de entrevista de Turing

Sequence question which include a square .