Adding java solution for print 2d array spiral