Pregunta de entrevista de Poshmark

Print 2D array in spiral form. 2 sum problem