print spiral array from inner to outer