update solution of Spiral Matrix