Cisco Interview Question

Making an array look like a chess board.