Spiral Matrix

https://oj.leetcode.com/problems/spiral-matrix/

NOTICE: check if both conditions reached end