Oracle Interview Question

spiral matrix code dsa c++