Pregunta de entrevista de Cisco

Making an array look like a chess board.