Cyntexa interview question

Print outer layer of 2D matrix