Solve two array problems

Solve spiral-matrix and find-minimum-in-rotated-sorted-array