Ok something interesting and challenging.
I have a 2d array of 50*50 and have to find the minimum in this array using the spiral search. Please see the attached picture for the spiral search pattern.
It could either start from inside or outside of the 2d array.