Infogain Interview Question

Print the 2D array in spiral form (not exactly the same question)