Nagarro Interview Question

Time complexities of basic algorithms. Program to print a matrix in spiral form.