Poshmark interview question

Print 2D array in spiral form. 2 sum problem